Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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.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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 191.3 kB / 8.529 MB, free: 1.836 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.191/1.191, allocations: 221.4 MB / 230.3 MB, free: 7.734 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.0009327/0.0009327, allocations: 84.73 kB / 281.2 MB, free: 5.484 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.166/0.166, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.274e-06/7.304e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.124, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2959/0.4199, allocations: 91.96 MB / 0.5839 GB, free: 4.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.4202, allocations: 67.95 kB / 0.5839 GB, free: 4.773 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03424/0.4544, allocations: 11.9 MB / 0.5956 GB, free: 8.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.4545, allocations: 16 kB / 0.5956 GB, free: 8.824 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.00205/0.4566, allocations: 0.9661 MB / 0.5965 GB, free: 7.812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4566, allocations: 15.97 kB / 0.5965 GB, free: 7.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.4568, allocations: 75.06 kB / 0.5966 GB, free: 7.723 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.4574, allocations: 400.7 kB / 0.597 GB, free: 7.293 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.4574, allocations: 28 kB / 0.597 GB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.4575, allocations: 39.91 kB / 0.5971 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001118/0.4586, allocations: 0.5727 MB / 0.5976 GB, free: 6.652 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.4598, allocations: 0.6631 MB / 0.5983 GB, free: 5.957 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.4598, allocations: 7.906 kB / 0.5983 GB, free: 5.949 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.936e-05/0.4599, allocations: 4 kB / 0.5983 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.48e-05/0.46, allocations: 16 kB / 0.5983 GB, free: 5.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.4647, allocations: 2.512 MB / 0.6007 GB, free: 3.309 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008234/0.4656, allocations: 442.9 kB / 0.6012 GB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004733/0.4661, allocations: 315.4 kB / 0.6015 GB, free: 2.531 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.895e-05/0.4662, allocations: 8.25 kB / 0.6015 GB, free: 2.523 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.4662, allocations: 46.5 kB / 0.6015 GB, free: 2.469 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 3.066e-06/0.4662, allocations: 0 / 0.6015 GB, free: 2.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.004928/0.4712, allocations: 2.308 MB / 0.6038 GB, free: 15.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.4712, allocations: 140.5 kB / 0.6039 GB, free: 15.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.4716, allocations: 301.1 kB / 0.6042 GB, free: 15.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.497e-05/0.4717, allocations: 41.69 kB / 0.6042 GB, free: 15.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4719, allocations: 212.7 kB / 0.6044 GB, free: 15.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.4721, allocations: 276.2 kB / 0.6047 GB, free: 14.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.4722, allocations: 7.875 kB / 0.6047 GB, free: 14.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.4724, allocations: 370.8 kB / 0.6051 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.4728, allocations: 294 kB / 0.6053 GB, free: 14.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005977/0.4735, allocations: 452.7 kB / 0.6058 GB, free: 13.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006656/0.4741, allocations: 274.4 kB / 0.606 GB, free: 13.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4741, allocations: 4 kB / 0.606 GB, free: 13.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002473/0.4766, allocations: 1.058 MB / 0.6071 GB, free: 12.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.4767, allocations: 4 kB / 0.6071 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/0.4767, allocations: 11.98 kB / 0.6071 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.4778, allocations: 0.5656 MB / 0.6076 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005944/0.4784, allocations: 147.8 kB / 0.6078 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.4809, allocations: 2.67 MB / 0.6104 GB, free: 8.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.482, allocations: 203.7 kB / 0.6106 GB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.4821, allocations: 47.97 kB / 0.6106 GB, free: 8.711 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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: 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,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003466/0.4825, allocations: 137.2 kB / 0.6108 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.4827, allocations: 67.25 kB / 0.6108 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/0.485, allocations: 0.9856 MB / 0.6118 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.485, allocations: 12 kB / 0.6118 GB, free: 7.473 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.485, allocations: 3.984 kB / 0.6118 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.485, allocations: 7.984 kB / 0.6118 GB, free: 7.461 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.4885, allocations: 1.887 MB / 0.6137 GB, free: 5.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4885, allocations: 0 / 0.6137 GB, free: 5.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006478/0.4892, allocations: 127.9 kB / 0.6138 GB, free: 5.383 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009883/0.4902, allocations: 0.5345 MB / 0.6143 GB, free: 4.836 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.589e-05/0.4903, allocations: 27.95 kB / 0.6143 GB, free: 4.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00228/0.4926, allocations: 2.616 MB / 0.6169 GB, free: 2.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4926, allocations: 0 / 0.6169 GB, free: 2.09 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002637/0.4952, allocations: 1.598 MB / 0.6184 GB, free: 436 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003643/0.4956, allocations: 212.2 kB / 0.6186 GB, free: 204 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.4958, allocations: 23.98 kB / 0.6187 GB, free: 180 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009956/0.4968, allocations: 179.8 kB / 0.6188 GB, free: 0 / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000363/0.4971, allocations: 167.6 kB / 0.619 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.4973, allocations: 47.86 kB / 0.619 GB, free: 15.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003293/0.4976, allocations: 235.2 kB / 0.6193 GB, free: 15.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000939/0.4985, allocations: 167.9 kB / 0.6194 GB, free: 15.4 MB / 442.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.0003141/0.4989, allocations: 155 kB / 0.6196 GB, free: 15.23 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.5005, allocations: 0.866 MB / 0.6204 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5005, allocations: 0 / 0.6204 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.5016, allocations: 456.7 kB / 0.6209 GB, free: 13.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007316/0.5023, allocations: 79.61 kB / 0.6209 GB, free: 13.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003219/0.5055, allocations: 1.599 MB / 0.6225 GB, free: 12.19 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006117/0.5062, allocations: 0.9764 MB / 0.6234 GB, free: 11.18 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5062, allocations: 0 / 0.6234 GB, free: 11.18 MB / 442.7 MB Notification: Performance of Templates: time 0.02104/0.5272, allocations: 13.68 MB / 0.6368 GB, free: 13.56 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches