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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001495, allocations: 179.1 kB / 8.52 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.4 MB / 230.3 MB, free: 7.668 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009825, allocations: 88 kB / 281.2 MB, free: 5.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1688/0.1688, allocations: 44.14 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.408e-06/9.438e-06, allocations: 224 / 444 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 61.91 MB / 0.4941 GB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3036/0.4254, allocations: 105.7 MB / 0.5973 GB, free: 7.098 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.4256, allocations: 67.95 kB / 0.5974 GB, free: 7.031 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1408/0.5664, allocations: 49.52 MB / 0.6457 GB, free: 5.332 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.337e-05/0.5665, allocations: 47.98 kB / 0.6458 GB, free: 5.285 MB / 458.7 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.006016/0.5725, allocations: 2.434 MB / 0.6482 GB, free: 2.793 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.5726, allocations: 15.91 kB / 0.6482 GB, free: 2.777 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.5738, allocations: 296.8 kB / 0.6485 GB, free: 2.484 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.5757, allocations: 0.9862 MB / 0.6494 GB, free: 1.441 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007553/0.5765, allocations: 400.1 kB / 0.6498 GB, free: 1.004 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004114/0.5769, allocations: 143.8 kB / 0.6499 GB, free: 0.8633 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004229/0.5812, allocations: 2.086 MB / 0.652 GB, free: 14.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003951/0.5851, allocations: 2.047 MB / 0.654 GB, free: 12.65 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.5853, allocations: 31.61 kB / 0.654 GB, free: 12.62 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/0.5855, allocations: 0 / 0.654 GB, free: 12.62 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.018e-05/0.5856, allocations: 56 kB / 0.6541 GB, free: 12.56 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.6, allocations: 6.294 MB / 0.6602 GB, free: 6.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/0.6028, allocations: 1.482 MB / 0.6617 GB, free: 4.652 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002028/0.6049, allocations: 1.145 MB / 0.6628 GB, free: 3.496 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002566/0.6051, allocations: 119.5 kB / 0.6629 GB, free: 3.359 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.112e-05/0.6052, allocations: 72.8 kB / 0.663 GB, free: 3.277 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 4.909e-06/0.6052, allocations: 0 / 0.663 GB, free: 3.277 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.01909/0.6243, allocations: 10.09 MB / 0.6728 GB, free: 8.723 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.6245, allocations: 270 kB / 0.6731 GB, free: 8.406 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.6255, allocations: 0.7275 MB / 0.6738 GB, free: 7.664 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00039/0.6259, allocations: 41.7 kB / 0.6738 GB, free: 7.617 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004501/0.6264, allocations: 0.5376 MB / 0.6743 GB, free: 7.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001123/0.6275, allocations: 1.097 MB / 0.6754 GB, free: 5.957 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.6277, allocations: 7.984 kB / 0.6754 GB, free: 5.949 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002471/0.6279, allocations: 432.6 kB / 0.6758 GB, free: 5.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/0.6299, allocations: 0.9554 MB / 0.6768 GB, free: 4.562 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/0.632, allocations: 1.347 MB / 0.6781 GB, free: 3.094 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/0.6341, allocations: 0.9839 MB / 0.679 GB, free: 2.113 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.6341, allocations: 4 kB / 0.6791 GB, free: 2.109 MB / 490.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.006322/0.6404, allocations: 3.06 MB / 0.682 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.6405, allocations: 11.84 kB / 0.6821 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/0.6405, allocations: 12 kB / 0.6821 GB, free: 15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002345/0.6429, allocations: 0.9933 MB / 0.683 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00347/0.6463, allocations: 0.7841 MB / 0.6838 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008746/0.6551, allocations: 6.963 MB / 0.6906 GB, free: 5.941 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002629/0.6578, allocations: 255.8 kB / 0.6908 GB, free: 5.691 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004124/0.6582, allocations: 124 kB / 0.691 GB, free: 5.57 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007061/0.6589, allocations: 198.1 kB / 0.6912 GB, free: 5.371 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005133/0.6594, allocations: 201.6 kB / 0.6913 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004267/0.6637, allocations: 2.163 MB / 0.6935 GB, free: 2.977 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/0.6638, allocations: 32 kB / 0.6935 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.6638, allocations: 4 kB / 0.6935 GB, free: 2.941 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.93e-05/0.6638, allocations: 15.94 kB / 0.6935 GB, free: 2.926 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/0.6766, allocations: 6.893 MB / 0.7002 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.6766, allocations: 8.094 kB / 0.7002 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003457/0.6801, allocations: 0.7811 MB / 0.701 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002226/0.6824, allocations: 0.9919 MB / 0.702 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002576/0.6826, allocations: 55.92 kB / 0.702 GB, free: 9.992 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1656/0.8482, allocations: 9.479 MB / 0.7113 GB, free: 207.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/0.8483, allocations: 15.31 kB / 0.7113 GB, free: 207.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008893/0.8572, allocations: 5.319 MB / 0.7165 GB, free: 206.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.8584, allocations: 0.516 MB / 0.717 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004532/0.8588, allocations: 32.73 kB / 0.717 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/0.8611, allocations: 272.3 kB / 0.7173 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006627/0.8617, allocations: 386.2 kB / 0.7177 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002444/0.862, allocations: 123.4 kB / 0.7178 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0006485/0.8626, allocations: 0.5536 MB / 0.7183 GB, free: 206.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002325/0.865, allocations: 0.5903 MB / 0.7189 GB, free: 206.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004579/0.8654, allocations: 212.2 kB / 0.7191 GB, free: 206.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004185/0.8696, allocations: 2.824 MB / 0.7219 GB, free: 205.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.8697, allocations: 0 / 0.7219 GB, free: 205.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004529/0.8742, allocations: 2.374 MB / 0.7242 GB, free: 205.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/0.8762, allocations: 226.8 kB / 0.7244 GB, free: 205.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009487/0.8857, allocations: 5.168 MB / 0.7294 GB, free: 203.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/0.8875, allocations: 1.771 MB / 0.7312 GB, free: 202.8 MB / 0.5105 GB Notification: Performance of SimCode: time 9.52e-07/0.8875, allocations: 0 / 0.7312 GB, free: 202.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.05296/0.9405, allocations: 37.09 MB / 0.7674 GB, free: 190.7 MB / 0.5105 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/AllComponents/AllComponents.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches