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.001177/0.001177, allocations: 109.1 kB / 17.09 MB, free: 6.02 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.001211/0.001211, allocations: 198.2 kB / 18.02 MB, free: 5.094 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.363/1.363, 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.2038/0.2038, allocations: 43.53 MB / 314.8 MB, free: 464 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.00152/0.00152, allocations: 67.91 kB / 442.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1195, allocations: 57.79 MB / 0.4886 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01109/0.1306, allocations: 9.592 MB / 0.4979 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007115/0.1378, allocations: 3.117 MB / 0.501 GB, free: 15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002402/0.1402, allocations: 47.64 kB / 0.501 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.1418, allocations: 352.4 kB / 0.5014 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004246/0.1461, allocations: 0.7906 MB / 0.5021 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003339/0.1494, allocations: 0.9555 MB / 0.5031 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006786/0.1562, allocations: 3.353 MB / 0.5064 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.1583, allocations: 0.8825 MB / 0.5072 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003058/0.1614, allocations: 1.363 MB / 0.5085 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002866/0.1642, allocations: 1.545 MB / 0.5101 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009502/0.1652, allocations: 283.9 kB / 0.5103 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.1666, allocations: 411.8 kB / 0.5107 GB, free: 4.961 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009252/0.1675, allocations: 0.6815 MB / 0.5114 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002599/0.1702, allocations: 1.345 MB / 0.5127 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00476/0.1749, allocations: 3.282 MB / 0.5159 GB, free: 15.63 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.175, allocations: 4 kB / 0.5159 GB, free: 15.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.175, allocations: 0 / 0.5159 GB, free: 15.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001387/0.1751, allocations: 0 / 0.5159 GB, free: 15.63 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.009364/0.1845, allocations: 2.931 MB / 0.5188 GB, free: 12.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.1846, allocations: 11.89 kB / 0.5188 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.1857, allocations: 297.8 kB / 0.5191 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.1877, allocations: 1.135 MB / 0.5202 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003849/0.1881, allocations: 392.2 kB / 0.5205 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003964/0.1885, allocations: 239.7 kB / 0.5208 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005071/0.1935, allocations: 2.581 MB / 0.5233 GB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.704e-05/0.1937, allocations: 35.7 kB / 0.5233 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002189/0.1939, allocations: 88 kB / 0.5234 GB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.373e-05/0.1939, allocations: 52 kB / 0.5235 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005918/0.1999, allocations: 2.617 MB / 0.526 GB, free: 5.004 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2593/0.4592, allocations: 6.86 MB / 0.5327 GB, free: 36.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004718/0.4639, allocations: 2.474 MB / 0.5351 GB, free: 35.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002843/0.4668, allocations: 1.4 MB / 0.5365 GB, free: 35.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002093/0.467, allocations: 130.8 kB / 0.5366 GB, free: 35.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.4671, allocations: 76.31 kB / 0.5367 GB, free: 35.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=275): time 4.789e-06/0.4671, allocations: 0 / 0.5367 GB, free: 35.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=333): time 0.02821/0.4953, allocations: 14.05 MB / 0.5504 GB, free: 28.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.4955, allocations: 322.5 kB / 0.5507 GB, free: 27.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/0.4977, allocations: 1.147 MB / 0.5518 GB, free: 27.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003428/0.4981, allocations: 98.33 kB / 0.5519 GB, free: 27.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006474/0.4988, allocations: 0.703 MB / 0.5526 GB, free: 26.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/0.4998, allocations: 1.119 MB / 0.5537 GB, free: 26.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001559/0.5014, allocations: 0.5238 MB / 0.5542 GB, free: 25.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.216e-05/0.5015, allocations: 303.1 kB / 0.5545 GB, free: 25.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/0.5043, allocations: 1.114 MB / 0.5556 GB, free: 25.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/0.5073, allocations: 1.554 MB / 0.5571 GB, free: 24.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004732/0.5121, allocations: 2.498 MB / 0.5596 GB, free: 23.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.722e-05/0.5121, allocations: 0 / 0.5596 GB, free: 23.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.007357/0.5195, allocations: 3.576 MB / 0.5631 GB, free: 21.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.5195, allocations: 10 kB / 0.5631 GB, free: 21.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.5195, allocations: 11.44 kB / 0.5631 GB, free: 21.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00226/0.5218, allocations: 1.218 MB / 0.5643 GB, free: 21.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.5244, allocations: 0.7034 MB / 0.565 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007807/0.5322, allocations: 8.02 MB / 0.5728 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/0.5346, allocations: 227.8 kB / 0.573 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/0.535, allocations: 120 kB / 0.5731 GB, free: 13.05 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.001136/0.5361, allocations: 489 kB / 0.5736 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006942/0.5368, allocations: 213.5 kB / 0.5738 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.538, allocations: 0.6072 MB / 0.5744 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.577e-05/0.538, allocations: 19.94 kB / 0.5744 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.538, allocations: 0 / 0.5744 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009792/0.539, allocations: 0.5177 MB / 0.5749 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004655/0.5395, allocations: 83.92 kB / 0.575 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/0.542, allocations: 311.6 kB / 0.5753 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006796/0.5427, allocations: 353.4 kB / 0.5756 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009732/0.5525, allocations: 4.53 MB / 0.58 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008466/0.5609, allocations: 5.266 MB / 0.5852 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003214/0.5642, allocations: 1.495 MB / 0.5866 GB, free: 15.12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001271/0.5655, allocations: 0.7751 MB / 0.5874 GB, free: 14.35 MB / 430.1 MB Notification: Performance of Backend: time 3.4e-07/0.5655, allocations: 0 / 0.5874 GB, free: 14.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006764/0.5723, allocations: 2.462 MB / 0.5898 GB, free: 11.87 MB / 430.1 MB Notification: Performance of SimCode: time 0.01074/0.583, allocations: 6.018 MB / 0.5957 GB, free: 5.836 MB / 430.1 MB Notification: Performance of Templates: time 0.07379/0.6568, allocations: 43.84 MB / 0.6385 GB, free: 9.996 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