Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 110.2 kB / 17.17 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.144/2.144, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 47.42 kB / 300.6 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1619, allocations: 49.45 MB / 350 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005829/0.1678, allocations: 2.19 MB / 352.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1698, allocations: 0.6432 MB / 352.9 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003436/0.1701, allocations: 4 kB / 352.9 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004743/0.1707, allocations: 39.77 kB / 352.9 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000354/0.1711, allocations: 39.75 kB / 353 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006893/0.1718, allocations: 123.7 kB / 353.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000673/0.1725, allocations: 315.2 kB / 353.4 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/0.1728, allocations: 64.2 kB / 353.4 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004257/0.1732, allocations: 131.5 kB / 353.6 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004205/0.1737, allocations: 147.4 kB / 353.7 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-05/0.1738, allocations: 16 kB / 353.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.896e-05/0.1739, allocations: 20 kB / 353.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.174, allocations: 71.78 kB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002388/0.1743, allocations: 123.3 kB / 353.9 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003999/0.1747, allocations: 199.9 kB / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1747, allocations: 0 / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1747, allocations: 0 / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.1748, allocations: 0 / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001817/0.1766, allocations: 0.5806 MB / 354.7 MB, free: 128 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/0.1767, allocations: 12.03 kB / 354.7 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.1768, allocations: 32.66 kB / 354.8 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.1774, allocations: 252.4 kB / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002911/0.1777, allocations: 130.2 kB / 355.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.541e-05/0.1778, allocations: 27.94 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.179, allocations: 379.4 kB / 355.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.179, allocations: 0 / 355.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.612e-05/0.1791, allocations: 8 kB / 355.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.1791, allocations: 4 kB / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.1809, allocations: 497.9 kB / 356 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002759/0.1837, allocations: 1.011 MB / 357 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.1855, allocations: 335.1 kB / 357.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006727/0.1862, allocations: 173.2 kB / 357.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.501e-05/0.1862, allocations: 4.234 kB / 357.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.1863, allocations: 34.8 kB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.977e-06/0.1863, allocations: 0 / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.03749/0.2238, allocations: 5.799 MB / 363.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.2239, allocations: 59.84 kB / 363.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.2244, allocations: 202.8 kB / 363.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.2245, allocations: 33.7 kB / 363.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/0.2248, allocations: 152.6 kB / 363.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/0.2251, allocations: 177.5 kB / 364 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.2255, allocations: 90.16 kB / 364.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.2257, allocations: 334.8 kB / 364.4 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001795/0.2275, allocations: 468.8 kB / 364.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.2294, allocations: 0.5099 MB / 365.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/0.2327, allocations: 0.8032 MB / 366.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2327, allocations: 4 kB / 366.2 MB, free: 4.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003949/0.2367, allocations: 0.9905 MB / 367.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.2367, allocations: 11.94 kB / 367.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.2368, allocations: 0 / 367.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.2368, allocations: 4 kB / 367.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.2381, allocations: 167.7 kB / 367.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.666e-05/0.2382, allocations: 8 kB / 367.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009706/0.2392, allocations: 87.91 kB / 367.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.2393, allocations: 16 kB / 367.5 MB, free: 3.051 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0003758/0.2397, allocations: 157.7 kB / 367.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.2399, allocations: 43.55 kB / 367.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.24, allocations: 47.31 kB / 367.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.24, allocations: 8 kB / 367.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.2401, allocations: 0 / 367.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.2401, allocations: 3.984 kB / 367.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.2463, allocations: 1.866 MB / 369.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.918e-05/0.2464, allocations: 11.98 kB / 369.6 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009473/0.2474, allocations: 148.5 kB / 369.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-05/0.2474, allocations: 15.94 kB / 369.8 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-05/0.2475, allocations: 20 kB / 369.8 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.32e-05/0.2475, allocations: 15.94 kB / 369.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.055e-05/0.2475, allocations: 15.92 kB / 369.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3867/0.6342, allocations: 1.22 MB / 371 MB, free: 26.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004453/0.6347, allocations: 149.5 kB / 371.2 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.6349, allocations: 22.02 kB / 371.2 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.636, allocations: 74.08 kB / 371.3 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003842/0.6364, allocations: 81.94 kB / 371.3 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6365, allocations: 23.19 kB / 371.4 MB, free: 26.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003802/0.6369, allocations: 144.4 kB / 371.5 MB, free: 26.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.637, allocations: 2.094 kB / 371.5 MB, free: 26.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001113/0.6381, allocations: 95.69 kB / 371.6 MB, free: 26.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.000354/0.6385, allocations: 128.5 kB / 371.7 MB, free: 26.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.005001/0.6435, allocations: 0.8466 MB / 372.6 MB, free: 26.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/0.6435, allocations: 1.219 kB / 372.6 MB, free: 26.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.6456, allocations: 329.5 kB / 372.9 MB, free: 26.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.6469, allocations: 62.62 kB / 373 MB, free: 26.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004315/0.6513, allocations: 1.17 MB / 374.1 MB, free: 25.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006162/0.6519, allocations: 0.7863 MB / 374.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005461/0.6525, allocations: 31.94 kB / 374.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6525, allocations: 0 / 374.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of Templates: time 0.02363/0.6762, allocations: 5.545 MB / 380.5 MB, free: 23.73 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches