Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 109.9 kB / 17.09 MB, free: 5.809 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.001198/0.001198, allocations: 194.2 kB / 18.02 MB, free: 4.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2123/0.2123, allocations: 43.52 MB / 314.8 MB, free: 480 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 67.91 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.117, allocations: 57.78 MB / 0.4886 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01147/0.1285, allocations: 9.599 MB / 0.498 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008044/0.1366, allocations: 3.109 MB / 0.501 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002442/0.1391, allocations: 43.81 kB / 0.501 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.1406, allocations: 364.4 kB / 0.5014 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003753/0.1444, allocations: 0.8098 MB / 0.5022 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002726/0.1472, allocations: 0.9438 MB / 0.5031 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004882/0.1521, allocations: 3.368 MB / 0.5064 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001709/0.1538, allocations: 0.8786 MB / 0.5072 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.1563, allocations: 1.367 MB / 0.5086 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002355/0.1587, allocations: 1.541 MB / 0.5101 GB, free: 5.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008363/0.1595, allocations: 280 kB / 0.5103 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.1608, allocations: 415.8 kB / 0.5107 GB, free: 4.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.1619, allocations: 0.6815 MB / 0.5114 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.164, allocations: 1.349 MB / 0.5127 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003374/0.1674, allocations: 3.275 MB / 0.5159 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1674, allocations: 0 / 0.5159 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1675, allocations: 0 / 0.5159 GB, free: 15.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.348e-05/0.1675, allocations: 0 / 0.5159 GB, free: 15.64 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.006917/0.1744, allocations: 2.939 MB / 0.5188 GB, free: 12.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.1745, allocations: 11.89 kB / 0.5188 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009461/0.1754, allocations: 293.8 kB / 0.5191 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.1773, allocations: 1.139 MB / 0.5202 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000374/0.1777, allocations: 388.2 kB / 0.5206 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004165/0.1781, allocations: 243.7 kB / 0.5208 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005229/0.1834, allocations: 2.588 MB / 0.5233 GB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.001e-05/0.1835, allocations: 31.72 kB / 0.5234 GB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.1838, allocations: 91.98 kB / 0.5234 GB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-05/0.1838, allocations: 52 kB / 0.5235 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005832/0.1896, allocations: 2.61 MB / 0.526 GB, free: 5.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2838/0.4734, allocations: 6.854 MB / 0.5327 GB, free: 36.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009003/0.4825, allocations: 2.48 MB / 0.5352 GB, free: 36.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005807/0.4884, allocations: 1.396 MB / 0.5365 GB, free: 36.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003178/0.4887, allocations: 125.5 kB / 0.5366 GB, free: 36.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.542e-05/0.4888, allocations: 75.75 kB / 0.5367 GB, free: 36.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=275): time 1.039e-05/0.4888, allocations: 1.688 kB / 0.5367 GB, free: 36.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=333): time 0.05592/0.5448, allocations: 14.06 MB / 0.5504 GB, free: 28.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.545, allocations: 326.9 kB / 0.5508 GB, free: 28.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.5484, allocations: 1.148 MB / 0.5519 GB, free: 27.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006006/0.549, allocations: 95.09 kB / 0.552 GB, free: 27.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008394/0.5499, allocations: 0.7033 MB / 0.5526 GB, free: 27.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001741/0.5516, allocations: 1.118 MB / 0.5537 GB, free: 26.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002463/0.5541, allocations: 0.5233 MB / 0.5543 GB, free: 26.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.813e-05/0.5542, allocations: 302.4 kB / 0.5545 GB, free: 25.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004936/0.5592, allocations: 1.118 MB / 0.5556 GB, free: 25.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005223/0.5644, allocations: 1.552 MB / 0.5571 GB, free: 24.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008799/0.5732, allocations: 2.5 MB / 0.5596 GB, free: 23.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-05/0.5733, allocations: 3.969 kB / 0.5596 GB, free: 23.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01294/0.5862, allocations: 3.568 MB / 0.5631 GB, free: 22.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.5863, allocations: 10.47 kB / 0.5631 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.455e-05/0.5864, allocations: 8.375 kB / 0.5631 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00402/0.5904, allocations: 1.22 MB / 0.5643 GB, free: 21.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004945/0.5954, allocations: 0.7141 MB / 0.565 GB, free: 21.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/0.6095, allocations: 8.014 MB / 0.5728 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004372/0.6139, allocations: 227.8 kB / 0.573 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007663/0.6147, allocations: 124 kB / 0.5731 GB, free: 13.19 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.ideal,gear2_1.lossyGear.mode,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.locked,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.startForward,gear2_1.lossyGear.tau_aPos,bearingFriction.free,lossyGear.ideal,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 333 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,22), (2,25), (1,6), (1,7), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002318/0.6171, allocations: 485.1 kB / 0.5736 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001335/0.6184, allocations: 209.5 kB / 0.5738 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/0.6204, allocations: 0.6072 MB / 0.5744 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.764e-05/0.6205, allocations: 11.95 kB / 0.5744 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.6205, allocations: 7.984 kB / 0.5744 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/0.6224, allocations: 0.5255 MB / 0.5749 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008332/0.6233, allocations: 86.08 kB / 0.575 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004921/0.6282, allocations: 311.6 kB / 0.5753 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001214/0.6295, allocations: 345.4 kB / 0.5756 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01809/0.6476, allocations: 4.533 MB / 0.5801 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01642/0.664, allocations: 5.268 MB / 0.5852 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005219/0.6693, allocations: 1.491 MB / 0.5867 GB, free: 15.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002225/0.6716, allocations: 0.7812 MB / 0.5874 GB, free: 14.48 MB / 430.1 MB Notification: Performance of Backend: time 6.91e-07/0.6716, allocations: 0 / 0.5874 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01056/0.6822, allocations: 2.466 MB / 0.5898 GB, free: 12.01 MB / 430.1 MB Notification: Performance of SimCode: time 0.01474/0.6969, allocations: 6.017 MB / 0.5957 GB, free: 5.973 MB / 430.1 MB Notification: Performance of Templates: time 0.1224/0.8193, allocations: 42.3 MB / 0.637 GB, free: 11.67 MB / 478.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/AllComponents/AllComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches