Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 192.4 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 229.5 MB / 247.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008383/0.0008384, allocations: 95.75 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002233/0.0002234, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2684, allocations: 51.42 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002955/0.2714, allocations: 1.973 MB / 414 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.2732, allocations: 0.9382 MB / 415 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.2734, allocations: 4 kB / 415 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002869/0.2737, allocations: 47.64 kB / 415 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.2739, allocations: 41.09 kB / 415 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.2745, allocations: 155.3 kB / 415.2 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003917/0.2749, allocations: 367.3 kB / 415.6 MB, free: 22.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.2752, allocations: 95.8 kB / 415.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.2755, allocations: 135.5 kB / 415.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.2757, allocations: 155.3 kB / 415.9 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.027e-05/0.2758, allocations: 23.94 kB / 416 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.117e-05/0.2758, allocations: 16 kB / 416 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.276, allocations: 71.78 kB / 416 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.2761, allocations: 156.9 kB / 416.2 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.2764, allocations: 300.4 kB / 416.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2765, allocations: 0 / 416.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2765, allocations: 0 / 416.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2765, allocations: 4 kB / 416.5 MB, free: 21.41 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001278/0.2778, allocations: 0.585 MB / 417.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2778, allocations: 12.03 kB / 417.1 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.417e-05/0.2779, allocations: 40.56 kB / 417.1 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.2783, allocations: 279.1 kB / 417.4 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.2785, allocations: 146.3 kB / 417.5 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.2786, allocations: 32.38 kB / 417.6 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.2801, allocations: 0.5661 MB / 418.1 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.2802, allocations: 0 / 418.1 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.2802, allocations: 16 kB / 418.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2802, allocations: 4 kB / 418.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.2821, allocations: 0.5308 MB / 418.7 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.2839, allocations: 1.022 MB / 419.7 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.2859, allocations: 0.5142 MB / 420.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008313/0.2868, allocations: 271.2 kB / 420.5 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.333e-05/0.2869, allocations: 12 kB / 420.5 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.2869, allocations: 42.55 kB / 420.5 MB, free: 17.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.615e-06/0.2869, allocations: 0 / 420.5 MB, free: 17.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.0539/0.3408, allocations: 6.746 MB / 427.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.3409, allocations: 145 kB / 427.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.3412, allocations: 203.4 kB / 427.6 MB, free: 9.945 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.936e-05/0.3413, allocations: 37.7 kB / 427.7 MB, free: 9.902 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.3414, allocations: 137.6 kB / 427.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.3416, allocations: 189.3 kB / 428 MB, free: 9.578 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.456e-05/0.3417, allocations: 16 kB / 428 MB, free: 9.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.351e-05/0.3418, allocations: 342.8 kB / 428.3 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00221/0.344, allocations: 0.6578 MB / 429 MB, free: 8.559 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002338/0.3464, allocations: 0.8276 MB / 429.8 MB, free: 7.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/0.3505, allocations: 1.322 MB / 431.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3505, allocations: 0 / 431.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004766/0.3553, allocations: 1.472 MB / 432.6 MB, free: 4.777 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3554, allocations: 4 kB / 432.6 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3554, allocations: 8 kB / 432.6 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.3554, allocations: 8 kB / 432.6 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/0.3573, allocations: 239.7 kB / 432.9 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/0.3574, allocations: 8 kB / 432.9 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.3587, allocations: 123.7 kB / 433 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.3589, allocations: 28 kB / 433 MB, free: 4.367 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003554/0.3592, allocations: 185.5 kB / 433.2 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.3596, allocations: 161.5 kB / 433.4 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.3598, allocations: 63.3 kB / 433.4 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3598, allocations: 12 kB / 433.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.3599, allocations: 0 / 433.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3599, allocations: 7.984 kB / 433.5 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.3661, allocations: 2.288 MB / 435.7 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.3661, allocations: 12 kB / 435.8 MB, free: 1.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.3672, allocations: 204.4 kB / 435.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-05/0.3673, allocations: 16.23 kB / 436 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.911e-05/0.3673, allocations: 24.19 kB / 436 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.831e-05/0.3674, allocations: 19.92 kB / 436 MB, free: 1.191 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.429e-05/0.3674, allocations: 19.88 kB / 436 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/0.3719, allocations: 1.677 MB / 437.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002845/0.3722, allocations: 164.6 kB / 437.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3723, allocations: 28 kB / 437.9 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000914/0.3732, allocations: 99.97 kB / 438 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002787/0.3735, allocations: 91.66 kB / 438.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.744e-05/0.3736, allocations: 32 kB / 438.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001736/0.3738, allocations: 138.9 kB / 438.2 MB, free: 14.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3738, allocations: 0 / 438.2 MB, free: 14.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001058/0.3749, allocations: 124 kB / 438.4 MB, free: 14.66 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0002203/0.3751, allocations: 142.9 kB / 438.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004294/0.3794, allocations: 1.186 MB / 439.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.3795, allocations: 4 kB / 439.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.3811, allocations: 375.1 kB / 440.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.3828, allocations: 144.2 kB / 440.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.3863, allocations: 1.365 MB / 441.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.3868, allocations: 0.8167 MB / 442.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001051/0.3879, allocations: 91.38 kB / 442.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.3883, allocations: 35.44 kB / 442.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3883, allocations: 0 / 442.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of Templates: time 0.01752/0.4059, allocations: 7.535 MB / 450 MB, free: 2.793 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches