Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001665, allocations: 171.5 kB / 8.146 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 91.06 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2867/0.2867, allocations: 43.49 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.726e-06/8.987e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2819, allocations: 58.84 MB / 476.5 MB, free: 5.07 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.444, allocations: 90.72 MB / 0.554 GB, free: 8.352 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.4443, allocations: 63.97 kB / 0.554 GB, free: 8.289 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05692/0.5012, allocations: 11.7 MB / 0.5654 GB, free: 12.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.734e-05/0.5013, allocations: 16 kB / 0.5655 GB, free: 12.53 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003484/0.5048, allocations: 0.9584 MB / 0.5664 GB, free: 11.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.5049, allocations: 8.031 kB / 0.5664 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/0.5052, allocations: 79.06 kB / 0.5665 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009269/0.5062, allocations: 416.6 kB / 0.5669 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/0.5062, allocations: 20 kB / 0.5669 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.5064, allocations: 39.91 kB / 0.5669 GB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00196/0.5084, allocations: 0.5766 MB / 0.5675 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.5103, allocations: 0.6632 MB / 0.5681 GB, free: 9.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.976e-05/0.5104, allocations: 7.906 kB / 0.5682 GB, free: 9.652 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-05/0.5105, allocations: 0 / 0.5682 GB, free: 9.652 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.748e-05/0.5105, allocations: 16 kB / 0.5682 GB, free: 9.637 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007869/0.5184, allocations: 2.512 MB / 0.5706 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.5199, allocations: 438.9 kB / 0.571 GB, free: 6.562 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009126/0.5209, allocations: 321.5 kB / 0.5713 GB, free: 6.238 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.521, allocations: 15.98 kB / 0.5714 GB, free: 6.223 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.5211, allocations: 50.89 kB / 0.5714 GB, free: 6.164 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 3.958e-06/0.5211, allocations: 0 / 0.5714 GB, free: 6.164 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.007718/0.5288, allocations: 2.294 MB / 0.5736 GB, free: 3.676 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.529, allocations: 136.5 kB / 0.5738 GB, free: 3.512 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.5296, allocations: 317 kB / 0.5741 GB, free: 3.195 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.5298, allocations: 37.7 kB / 0.5741 GB, free: 3.152 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.53, allocations: 263.1 kB / 0.5744 GB, free: 2.891 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004286/0.5304, allocations: 272.2 kB / 0.5746 GB, free: 2.621 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.592e-05/0.5305, allocations: 4 kB / 0.5746 GB, free: 2.617 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.5307, allocations: 346.8 kB / 0.575 GB, free: 2.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009665/0.5317, allocations: 294 kB / 0.5752 GB, free: 1.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.5328, allocations: 452.6 kB / 0.5757 GB, free: 1.488 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.534, allocations: 265.8 kB / 0.5759 GB, free: 1.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.534, allocations: 0 / 0.5759 GB, free: 1.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004601/0.5387, allocations: 1.036 MB / 0.5769 GB, free: 188 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.5387, allocations: 7.938 kB / 0.5769 GB, free: 180 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-05/0.5388, allocations: 4 kB / 0.5769 GB, free: 176 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002661/0.5415, allocations: 0.5737 MB / 0.5775 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.543, allocations: 159.7 kB / 0.5777 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005471/0.5485, allocations: 2.69 MB / 0.5803 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/0.5512, allocations: 199.7 kB / 0.5805 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/0.5515, allocations: 39.98 kB / 0.5805 GB, free: 12.4 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inertia5.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inertia2.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,2 6,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.000532/0.5521, allocations: 69.17 kB / 0.5806 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/0.5525, allocations: 63.25 kB / 0.5806 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005732/0.5583, allocations: 0.9857 MB / 0.5816 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.5584, allocations: 8 kB / 0.5816 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.5584, allocations: 4 kB / 0.5816 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.5584, allocations: 3.984 kB / 0.5816 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008333/0.5668, allocations: 1.898 MB / 0.5835 GB, free: 9.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/0.5668, allocations: 7.984 kB / 0.5835 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001766/0.5686, allocations: 123.9 kB / 0.5836 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/0.5712, allocations: 0.5381 MB / 0.5841 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/0.5715, allocations: 27.95 kB / 0.5842 GB, free: 8.562 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004982/0.5765, allocations: 2.616 MB / 0.5867 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.049e-05/0.5765, allocations: 3.906 kB / 0.5867 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006535/0.5831, allocations: 1.586 MB / 0.5883 GB, free: 4.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/0.5839, allocations: 216.2 kB / 0.5885 GB, free: 3.949 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00035/0.5843, allocations: 12 kB / 0.5885 GB, free: 3.938 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002662/0.587, allocations: 187.7 kB / 0.5887 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007648/0.5878, allocations: 175.6 kB / 0.5888 GB, free: 3.582 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/0.588, allocations: 43.89 kB / 0.5889 GB, free: 3.539 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0005776/0.5886, allocations: 239.2 kB / 0.5891 GB, free: 3.305 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001704/0.5903, allocations: 167.9 kB / 0.5893 GB, free: 3.141 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000523/0.5909, allocations: 143.1 kB / 0.5894 GB, free: 2.988 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003774/0.5947, allocations: 0.8823 MB / 0.5903 GB, free: 2.082 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5947, allocations: 0 / 0.5903 GB, free: 2.082 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/0.5971, allocations: 451.5 kB / 0.5907 GB, free: 1.641 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.5989, allocations: 83.95 kB / 0.5908 GB, free: 1.566 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007588/0.6065, allocations: 1.619 MB / 0.5923 GB, free: 15.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/0.6078, allocations: 0.9805 MB / 0.5933 GB, free: 14.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6078, allocations: 0 / 0.5933 GB, free: 14.89 MB / 442.7 MB Notification: Performance of Templates: time 0.03406/0.6419, allocations: 16.67 MB / 0.6096 GB, free: 14.2 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches