Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 114.7 kB / 18.46 MB, free: 4.465 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.001766/0.001766, allocations: 187 kB / 19.39 MB, free: 3.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 243.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2254/0.2254, allocations: 44.19 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 63.89 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3897, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01058/0.4003, allocations: 9.603 MB / 0.529 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007679/0.408, allocations: 3.064 MB / 0.532 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.4096, allocations: 44.47 kB / 0.532 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008333/0.4105, allocations: 364 kB / 0.5324 GB, free: 10 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002282/0.4128, allocations: 0.8086 MB / 0.5331 GB, free: 9.316 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.415, allocations: 0.9595 MB / 0.5341 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003588/0.4186, allocations: 3.358 MB / 0.5374 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.4199, allocations: 0.8675 MB / 0.5382 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.4222, allocations: 1.374 MB / 0.5396 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.4242, allocations: 1.549 MB / 0.5411 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004853/0.4247, allocations: 281.2 kB / 0.5413 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007933/0.4255, allocations: 401.8 kB / 0.5417 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005672/0.4261, allocations: 0.6759 MB / 0.5424 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.4274, allocations: 1.342 MB / 0.5437 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003329/0.4307, allocations: 3.285 MB / 0.5469 GB, free: 4 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.4307, allocations: 4 kB / 0.5469 GB, free: 0 / 398.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4307, allocations: 0 / 0.5469 GB, free: 0 / 398.1 MB Notification: Performance of Transformations before backend: time 5.952e-05/0.4308, allocations: 0 / 0.5469 GB, free: 0 / 398.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.007993/0.4388, allocations: 2.931 MB / 0.5498 GB, free: 13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.4389, allocations: 8.031 kB / 0.5498 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.44, allocations: 293.8 kB / 0.55 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.4418, allocations: 1.154 MB / 0.5512 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003763/0.4422, allocations: 392.2 kB / 0.5515 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003728/0.4426, allocations: 247.7 kB / 0.5518 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005021/0.4476, allocations: 2.581 MB / 0.5543 GB, free: 8.148 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.464e-05/0.4477, allocations: 31.7 kB / 0.5543 GB, free: 8.117 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002218/0.4479, allocations: 92 kB / 0.5544 GB, free: 8.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-05/0.448, allocations: 52 kB / 0.5545 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005826/0.4538, allocations: 2.613 MB / 0.557 GB, free: 5.367 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01286/0.4667, allocations: 6.863 MB / 0.5637 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005257/0.472, allocations: 2.479 MB / 0.5661 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003077/0.4751, allocations: 1.4 MB / 0.5675 GB, free: 10.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002501/0.4754, allocations: 119.1 kB / 0.5676 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.941e-05/0.4755, allocations: 76.3 kB / 0.5677 GB, free: 10.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=275): time 6.322e-06/0.4755, allocations: 4 kB / 0.5677 GB, free: 10.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=333): time 0.0338/0.5093, allocations: 14.04 MB / 0.5814 GB, free: 11.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/0.5095, allocations: 328.6 kB / 0.5817 GB, free: 11.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.5112, allocations: 1.147 MB / 0.5829 GB, free: 9.965 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002602/0.5115, allocations: 97.69 kB / 0.5829 GB, free: 9.863 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005946/0.5121, allocations: 0.7021 MB / 0.5836 GB, free: 9.152 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001104/0.5132, allocations: 1.113 MB / 0.5847 GB, free: 8.023 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001032/0.5143, allocations: 0.5266 MB / 0.5852 GB, free: 7.488 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.5144, allocations: 305.1 kB / 0.5855 GB, free: 7.188 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.5171, allocations: 1.119 MB / 0.5866 GB, free: 6.066 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002979/0.5201, allocations: 1.549 MB / 0.5881 GB, free: 4.391 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005048/0.5251, allocations: 2.498 MB / 0.5906 GB, free: 1.766 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.5252, allocations: 4 kB / 0.5906 GB, free: 1.762 MB / 446.1 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.007511/0.5327, allocations: 3.575 MB / 0.5941 GB, free: 14.17 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.5327, allocations: 11.94 kB / 0.5941 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.882e-05/0.5328, allocations: 23.92 kB / 0.5941 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.5354, allocations: 1.212 MB / 0.5953 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/0.5383, allocations: 0.7099 MB / 0.596 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/0.5485, allocations: 7.996 MB / 0.6038 GB, free: 3.852 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002461/0.551, allocations: 239.7 kB / 0.604 GB, free: 3.617 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004072/0.5514, allocations: 116 kB / 0.6041 GB, free: 3.504 MB / 462.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.001386/0.5528, allocations: 485.3 kB / 0.6046 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007604/0.5536, allocations: 209.5 kB / 0.6048 GB, free: 2.812 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001365/0.5549, allocations: 0.5952 MB / 0.6054 GB, free: 2.207 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.98e-05/0.555, allocations: 15.94 kB / 0.6054 GB, free: 2.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.555, allocations: 8 kB / 0.6054 GB, free: 2.184 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.5564, allocations: 0.5217 MB / 0.6059 GB, free: 1.641 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007806/0.5572, allocations: 79.94 kB / 0.606 GB, free: 1.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003205/0.5604, allocations: 311.6 kB / 0.6063 GB, free: 1.258 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008302/0.5612, allocations: 341.4 kB / 0.6066 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01226/0.5735, allocations: 4.564 MB / 0.6111 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01114/0.5847, allocations: 5.271 MB / 0.6162 GB, free: 6.996 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003508/0.5882, allocations: 1.483 MB / 0.6176 GB, free: 5.508 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001591/0.5898, allocations: 0.7773 MB / 0.6184 GB, free: 4.727 MB / 478.1 MB Notification: Performance of Backend: time 1.022e-06/0.5898, allocations: 7.938 kB / 0.6184 GB, free: 4.719 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007139/0.597, allocations: 2.453 MB / 0.6208 GB, free: 2.238 MB / 478.1 MB Notification: Performance of SimCode: time 0.01022/0.6072, allocations: 6.025 MB / 0.6267 GB, free: 12.16 MB / 494.1 MB Notification: Performance of Templates: time 0.07814/0.6854, allocations: 42.31 MB / 0.668 GB, free: 2.051 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/AllComponents/AllComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches