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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [: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 3.2.3+maint.om/package.mo): time 0.0008388/0.0008389, allocations: 190.6 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.077/1.077, allocations: 205.2 MB / 213.4 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000775/0.0007749, allocations: 87.28 kB / 261.4 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1597/0.1597, allocations: 43.5 MB / 352.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.07e-06/5.22e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2403, allocations: 58.84 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.3626, allocations: 104.3 MB / 0.5673 GB, free: 10.58 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001448/0.3628, allocations: 59.97 kB / 0.5673 GB, free: 10.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1266/0.4894, allocations: 48.73 MB / 0.6149 GB, free: 9.617 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.93e-05/0.4895, allocations: 47.98 kB / 0.615 GB, free: 9.57 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.005011/0.4945, allocations: 2.434 MB / 0.6174 GB, free: 7.078 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.4946, allocations: 8.031 kB / 0.6174 GB, free: 7.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007971/0.4954, allocations: 296.9 kB / 0.6176 GB, free: 6.777 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.4968, allocations: 0.9823 MB / 0.6186 GB, free: 5.738 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006729/0.4975, allocations: 400.1 kB / 0.619 GB, free: 5.301 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003001/0.4978, allocations: 147.8 kB / 0.6191 GB, free: 5.156 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003387/0.5012, allocations: 2.086 MB / 0.6212 GB, free: 3.059 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003269/0.5045, allocations: 2.055 MB / 0.6232 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.399e-05/0.5046, allocations: 27.7 kB / 0.6232 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001784/0.5047, allocations: 4 kB / 0.6232 GB, free: 0.8906 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.22e-05/0.5048, allocations: 52 kB / 0.6233 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0103/0.5151, allocations: 6.27 MB / 0.6294 GB, free: 10.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.5173, allocations: 1.491 MB / 0.6308 GB, free: 8.941 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.5189, allocations: 1.149 MB / 0.632 GB, free: 7.773 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002054/0.5191, allocations: 123.3 kB / 0.6321 GB, free: 7.633 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.5192, allocations: 72.73 kB / 0.6321 GB, free: 7.551 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 4.749e-06/0.5192, allocations: 4 kB / 0.6321 GB, free: 7.547 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.1294/0.6485, allocations: 10.09 MB / 0.642 GB, free: 176.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.6486, allocations: 268.9 kB / 0.6423 GB, free: 176.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007115/0.6493, allocations: 0.7296 MB / 0.643 GB, free: 176 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/0.6495, allocations: 48.25 kB / 0.643 GB, free: 175.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.6498, allocations: 0.5303 MB / 0.6435 GB, free: 175.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005271/0.6503, allocations: 1.094 MB / 0.6446 GB, free: 175.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.6505, allocations: 7.156 kB / 0.6446 GB, free: 175.1 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.6506, allocations: 429 kB / 0.645 GB, free: 174.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.652, allocations: 0.9514 MB / 0.6459 GB, free: 174.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.6535, allocations: 1.358 MB / 0.6473 GB, free: 174.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.6552, allocations: 0.9853 MB / 0.6482 GB, free: 174.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.6552, allocations: 0 / 0.6482 GB, free: 174.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.004848/0.6601, allocations: 3.051 MB / 0.6512 GB, free: 174.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.6601, allocations: 6.438 kB / 0.6512 GB, free: 174.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.275e-05/0.6602, allocations: 13.44 kB / 0.6512 GB, free: 174.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/0.6619, allocations: 0.9973 MB / 0.6522 GB, free: 174.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/0.6647, allocations: 0.7858 MB / 0.653 GB, free: 174.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006006/0.6707, allocations: 6.951 MB / 0.6598 GB, free: 169.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.6726, allocations: 257.8 kB / 0.66 GB, free: 169.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002221/0.6728, allocations: 131.6 kB / 0.6601 GB, free: 169.9 MB / 474.7 MB 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.0004854/0.6733, allocations: 189.5 kB / 0.6603 GB, free: 169.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.6737, allocations: 200.7 kB / 0.6605 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/0.6772, allocations: 2.177 MB / 0.6626 GB, free: 169.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/0.6772, allocations: 30.91 kB / 0.6627 GB, free: 169.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.6773, allocations: 5.531 kB / 0.6627 GB, free: 169.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.6773, allocations: 18.47 kB / 0.6627 GB, free: 169.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.6877, allocations: 6.882 MB / 0.6694 GB, free: 166.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.6877, allocations: 9.781 kB / 0.6694 GB, free: 166.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003/0.6908, allocations: 0.7757 MB / 0.6702 GB, free: 166.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/0.6926, allocations: 0.9919 MB / 0.6711 GB, free: 166.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002129/0.6929, allocations: 67 kB / 0.6712 GB, free: 166.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007129/0.7, allocations: 9.474 MB / 0.6804 GB, free: 158.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/0.7, allocations: 12.62 kB / 0.6805 GB, free: 158.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006751/0.7068, allocations: 5.324 MB / 0.6857 GB, free: 155.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009425/0.7077, allocations: 0.5159 MB / 0.6862 GB, free: 155.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00037/0.7081, allocations: 38.22 kB / 0.6862 GB, free: 155.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/0.7101, allocations: 271.6 kB / 0.6865 GB, free: 155.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006291/0.7107, allocations: 374 kB / 0.6868 GB, free: 155.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002256/0.711, allocations: 131.2 kB / 0.6869 GB, free: 155.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006413/0.7116, allocations: 0.5534 MB / 0.6875 GB, free: 154.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002127/0.7137, allocations: 0.5998 MB / 0.6881 GB, free: 154.9 MB / 474.7 MB 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.0003795/0.7141, allocations: 210.4 kB / 0.6883 GB, free: 154.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004082/0.7182, allocations: 2.826 MB / 0.691 GB, free: 153.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.7182, allocations: 1.219 kB / 0.691 GB, free: 153.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004234/0.7225, allocations: 2.367 MB / 0.6933 GB, free: 152.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.7242, allocations: 237.3 kB / 0.6936 GB, free: 152.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008164/0.7323, allocations: 5.168 MB / 0.6986 GB, free: 149.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/0.7338, allocations: 1.77 MB / 0.7003 GB, free: 147.7 MB / 474.7 MB Notification: Performance of SimCode: time 5.31e-07/0.7338, allocations: 3.844 kB / 0.7003 GB, free: 147.7 MB / 474.7 MB Notification: Performance of Templates: time 0.04422/0.778, allocations: 37.1 MB / 0.7366 GB, free: 117.4 MB / 474.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/AllComponents/AllComponents.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches