Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [: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.001692/0.001697, allocations: 175.1 kB / 8.146 MB, free: 2.215 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.705/1.705, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.00127/0.001269, allocations: 91.39 kB / 261.8 MB, free: 13.63 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.2847/0.2847, allocations: 43.49 MB / 353.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.907e-06/9.137e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2784, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1567/0.4352, allocations: 87.48 MB / 0.5508 GB, free: 11.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.4355, allocations: 75.47 kB / 0.5509 GB, free: 11.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0216/0.4572, allocations: 4.237 MB / 0.555 GB, free: 7.273 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.4572, allocations: 4 kB / 0.555 GB, free: 7.27 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001274/0.4585, allocations: 0.5099 MB / 0.5555 GB, free: 6.715 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.4586, allocations: 8.031 kB / 0.5555 GB, free: 6.707 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4587, allocations: 23.72 kB / 0.5555 GB, free: 6.684 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.4591, allocations: 253.3 kB / 0.5558 GB, free: 6.398 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.4592, allocations: 4 kB / 0.5558 GB, free: 6.395 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.128e-05/0.4593, allocations: 19.94 kB / 0.5558 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006564/0.4599, allocations: 188.8 kB / 0.556 GB, free: 6.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006221/0.4606, allocations: 210.4 kB / 0.5562 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.4606, allocations: 3.984 kB / 0.5562 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.4607, allocations: 3.906 kB / 0.5562 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.4607, allocations: 8 kB / 0.5562 GB, free: 5.965 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.4631, allocations: 0.6621 MB / 0.5568 GB, free: 5.262 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/0.4635, allocations: 150.2 kB / 0.557 GB, free: 5.109 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.4639, allocations: 130.7 kB / 0.5571 GB, free: 4.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.839e-05/0.464, allocations: 4.234 kB / 0.5571 GB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.464, allocations: 38.78 kB / 0.5572 GB, free: 4.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 3.136e-06/0.464, allocations: 0 / 0.5572 GB, free: 4.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.004052/0.4681, allocations: 1.09 MB / 0.5582 GB, free: 3.742 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.4682, allocations: 55.41 kB / 0.5583 GB, free: 3.676 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.4684, allocations: 140.8 kB / 0.5584 GB, free: 3.531 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.51e-05/0.4685, allocations: 25.7 kB / 0.5584 GB, free: 3.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.4687, allocations: 199 kB / 0.5586 GB, free: 3.305 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.4688, allocations: 110.4 kB / 0.5587 GB, free: 3.195 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.4689, allocations: 0 / 0.5587 GB, free: 3.195 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.469, allocations: 326.8 kB / 0.559 GB, free: 2.867 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003253/0.4694, allocations: 99.78 kB / 0.5591 GB, free: 2.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003656/0.4698, allocations: 143.1 kB / 0.5593 GB, free: 2.617 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004737/0.4702, allocations: 99.81 kB / 0.5594 GB, free: 2.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.4703, allocations: 0 / 0.5594 GB, free: 2.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001273/0.4716, allocations: 362.2 kB / 0.5597 GB, free: 2.156 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.4716, allocations: 4 kB / 0.5597 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.4716, allocations: 4 kB / 0.5597 GB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007263/0.4724, allocations: 176.8 kB / 0.5599 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/0.4729, allocations: 59.89 kB / 0.5599 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.4742, allocations: 0.7365 MB / 0.5607 GB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005473/0.4748, allocations: 48.02 kB / 0.5607 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/0.4749, allocations: 15.98 kB / 0.5607 GB, free: 1.09 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.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: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002072/0.4751, allocations: 45.58 kB / 0.5608 GB, free: 1.039 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4752, allocations: 19.72 kB / 0.5608 GB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.4768, allocations: 404.8 kB / 0.5612 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.4769, allocations: 8 kB / 0.5612 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4769, allocations: 0 / 0.5612 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.547e-06/0.4769, allocations: 3.984 kB / 0.5612 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.4795, allocations: 0.84 MB / 0.562 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.4796, allocations: 0 / 0.562 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004931/0.4801, allocations: 59.91 kB / 0.5621 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006406/0.4808, allocations: 168.7 kB / 0.5622 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/0.4808, allocations: 7.984 kB / 0.5622 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.482, allocations: 0.6889 MB / 0.5629 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.482, allocations: 0 / 0.5629 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001884/0.4839, allocations: 0.6069 MB / 0.5635 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.4842, allocations: 120.9 kB / 0.5636 GB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.05e-05/0.4843, allocations: 8 kB / 0.5636 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.4849, allocations: 55.92 kB / 0.5637 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.4851, allocations: 55.83 kB / 0.5637 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.522e-05/0.4852, allocations: 15.98 kB / 0.5637 GB, free: 13.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001466/0.4853, allocations: 111.3 kB / 0.5638 GB, free: 13.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005121/0.4859, allocations: 72.11 kB / 0.5639 GB, free: 13.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003227/0.4862, allocations: 131.2 kB / 0.564 GB, free: 13.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009806/0.4872, allocations: 293.7 kB / 0.5643 GB, free: 13.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4872, allocations: 0 / 0.5643 GB, free: 13.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004754/0.4877, allocations: 143.7 kB / 0.5645 GB, free: 13.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.4882, allocations: 23.91 kB / 0.5645 GB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.4899, allocations: 477.2 kB / 0.5649 GB, free: 12.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000592/0.4905, allocations: 0.7754 MB / 0.5657 GB, free: 11.76 MB / 410.7 MB Notification: Performance of SimCode: time 3.126e-06/0.4905, allocations: 0 / 0.5657 GB, free: 11.76 MB / 410.7 MB Notification: Performance of Templates: time 0.0104/0.5009, allocations: 3.987 MB / 0.5696 GB, free: 7.77 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches