Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008643/0.0008643, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9281/0.9281, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.307e-05/2.49e-05, allocations: 5.125 kB / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003619/0.003644, allocations: 2.325 MB / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.005084, allocations: 0.8101 MB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.005219, allocations: 7.938 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.005506, allocations: 47.58 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.005706, allocations: 67.48 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.006119, allocations: 171.5 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.006512, allocations: 383.5 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.006674, allocations: 70.47 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003485/0.007022, allocations: 227.5 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.007227, allocations: 135.7 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.007281, allocations: 39.94 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.449e-05/0.007325, allocations: 32 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.007426, allocations: 95.7 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.007527, allocations: 107.8 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002964/0.007824, allocations: 259 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.007826, allocations: 0 / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.007826, allocations: 0 / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.00783, allocations: 0 / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007379/0.008568, allocations: 0.5079 MB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.0086, allocations: 15.97 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.491e-05/0.008665, allocations: 56.91 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.008859, allocations: 183.5 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.009017, allocations: 343.9 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.009065, allocations: 36.27 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004731/0.009538, allocations: 405.3 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.009554, allocations: 7.922 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.009577, allocations: 12 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.009585, allocations: 4 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.009831, allocations: 170.6 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.0105, allocations: 0.6431 MB / 280.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.01092, allocations: 334.7 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.01103, allocations: 103.5 kB / 280.9 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.01107, allocations: 11.94 kB / 280.9 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.0111, allocations: 50.47 kB / 281 MB, free: 9.223 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.573e-06/0.0111, allocations: 0 / 281 MB, free: 9.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005364/0.01646, allocations: 2.234 MB / 283.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.01653, allocations: 149.3 kB / 283.3 MB, free: 6.809 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.775e-05/0.01663, allocations: 178.5 kB / 283.5 MB, free: 6.621 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.01668, allocations: 37.7 kB / 283.5 MB, free: 6.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.218e-05/0.01673, allocations: 141.7 kB / 283.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.01684, allocations: 190.3 kB / 283.9 MB, free: 6.246 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.017, allocations: 94.28 kB / 284 MB, free: 6.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.201e-05/0.01709, allocations: 350.6 kB / 284.3 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.01732, allocations: 208.1 kB / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.01759, allocations: 282.7 kB / 284.8 MB, free: 5.285 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004693/0.01806, allocations: 0.4912 MB / 285.3 MB, free: 4.766 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.01806, allocations: 0 / 285.3 MB, free: 4.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005757/0.01864, allocations: 0.5363 MB / 285.8 MB, free: 4.223 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.01865, allocations: 4 kB / 285.8 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.01866, allocations: 4 kB / 285.8 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.01867, allocations: 7.984 kB / 285.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.01916, allocations: 159.8 kB / 286 MB, free: 4.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.01916, allocations: 7.984 kB / 286 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.01946, allocations: 84.02 kB / 286.1 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.01949, allocations: 12 kB / 286.1 MB, free: 3.949 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.01964, allocations: 152.5 kB / 286.2 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.0198, allocations: 117.6 kB / 286.3 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.01986, allocations: 63.3 kB / 286.4 MB, free: 3.605 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.01987, allocations: 8 kB / 286.4 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.01987, allocations: 4 kB / 286.4 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.01988, allocations: 3.984 kB / 286.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.0213, allocations: 1.188 MB / 287.6 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.0213, allocations: 8 kB / 287.6 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.02161, allocations: 164.5 kB / 287.8 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-06/0.02162, allocations: 12 kB / 287.8 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.02164, allocations: 31.94 kB / 287.8 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/0.02165, allocations: 23.92 kB / 287.8 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/0.02166, allocations: 15.94 kB / 287.9 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005802/0.02224, allocations: 0.8474 MB / 288.7 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.732e-05/0.02233, allocations: 51.72 kB / 288.8 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.02237, allocations: 27.98 kB / 288.8 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.02259, allocations: 59.95 kB / 288.8 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.0227, allocations: 91.62 kB / 288.9 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.613e-05/0.02272, allocations: 28 kB / 289 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.993e-05/0.02276, allocations: 49.81 kB / 289 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02276, allocations: 0 / 289 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003187/0.02308, allocations: 115.9 kB / 289.1 MB, free: 0.5703 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001015/0.02318, allocations: 116.3 kB / 289.2 MB, free: 456 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.1042/0.1274, allocations: 464.1 kB / 289.7 MB, free: 25.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.609e-05/0.1274, allocations: 2.531 kB / 289.7 MB, free: 25.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.1278, allocations: 160.3 kB / 289.9 MB, free: 25.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006978/0.1285, allocations: 132.7 kB / 290 MB, free: 25.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.1302, allocations: 0.9888 MB / 291 MB, free: 24.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.1303, allocations: 134 kB / 291.1 MB, free: 24.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003106/0.1306, allocations: 74.03 kB / 291.2 MB, free: 24.45 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/0.1309, allocations: 114.4 kB / 291.3 MB, free: 24.41 MB / 266.7 MB Notification: Performance of SimCode: time 1.734e-06/0.1309, allocations: 0 / 291.3 MB, free: 24.41 MB / 266.7 MB Notification: Performance of Templates: time 0.0123/0.1432, allocations: 9.271 MB / 300.6 MB, free: 21.79 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7402832061052322]