Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 170.6 kB / 8.513 MB, free: 1.844 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.203/1.203, allocations: 221.4 MB / 230.3 MB, free: 7.656 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.0008889/0.0008887, allocations: 98.64 kB / 281.2 MB, free: 5.457 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.1934/0.1934, allocations: 44.14 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.755e-06/7.785e-06, allocations: 224 / 444 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.133, allocations: 61.91 MB / 0.4941 GB, free: 1.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3248/0.4579, allocations: 88.63 MB / 0.5806 GB, free: 8.148 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.4582, allocations: 66.25 kB / 0.5807 GB, free: 8.117 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01294/0.4711, allocations: 4.342 MB / 0.5849 GB, free: 3.801 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.4712, allocations: 7.984 kB / 0.585 GB, free: 3.793 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.0008039/0.472, allocations: 0.5138 MB / 0.5855 GB, free: 3.234 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.4721, allocations: 15.97 kB / 0.5855 GB, free: 3.219 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.069e-05/0.4721, allocations: 27.55 kB / 0.5855 GB, free: 3.195 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.4725, allocations: 238.6 kB / 0.5857 GB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.4725, allocations: 15.84 kB / 0.5857 GB, free: 2.906 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.4726, allocations: 23.98 kB / 0.5858 GB, free: 2.883 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003925/0.473, allocations: 188.8 kB / 0.5859 GB, free: 2.699 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003964/0.4734, allocations: 210.4 kB / 0.5861 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.4734, allocations: 0 / 0.5861 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.4734, allocations: 0 / 0.5861 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.4734, allocations: 11.91 kB / 0.5862 GB, free: 2.473 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.4748, allocations: 0.6544 MB / 0.5868 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.4751, allocations: 154.1 kB / 0.5869 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.4753, allocations: 125.3 kB / 0.5871 GB, free: 1.496 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.4753, allocations: 8.375 kB / 0.5871 GB, free: 1.488 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.4754, allocations: 38.73 kB / 0.5871 GB, free: 1.441 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.403e-06/0.4754, allocations: 0 / 0.5871 GB, free: 1.441 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.0023/0.4777, allocations: 1.09 MB / 0.5882 GB, free: 264 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.4777, allocations: 55.41 kB / 0.5882 GB, free: 196 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.4779, allocations: 138 kB / 0.5884 GB, free: 52 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.222e-05/0.4779, allocations: 29.7 kB / 0.5884 GB, free: 16 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.4781, allocations: 124.6 kB / 0.5885 GB, free: 15.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.4782, allocations: 122.2 kB / 0.5886 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.4782, allocations: 0 / 0.5886 GB, free: 15.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4784, allocations: 330.8 kB / 0.5889 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.4785, allocations: 100 kB / 0.589 GB, free: 15.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.4787, allocations: 139.4 kB / 0.5892 GB, free: 15.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.479, allocations: 99.75 kB / 0.5893 GB, free: 15.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.479, allocations: 0 / 0.5893 GB, free: 15.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000702/0.4797, allocations: 366.1 kB / 0.5896 GB, free: 14.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.4797, allocations: 8 kB / 0.5896 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4797, allocations: 3.984 kB / 0.5896 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004229/0.4802, allocations: 183.1 kB / 0.5898 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.4804, allocations: 51.91 kB / 0.5898 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007672/0.4812, allocations: 0.7332 MB / 0.5906 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.4815, allocations: 51.92 kB / 0.5906 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.4815, allocations: 23.98 kB / 0.5906 GB, free: 13.65 MB / 410.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.000157/0.4817, allocations: 110.2 kB / 0.5907 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.4817, allocations: 19.72 kB / 0.5908 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008625/0.4826, allocations: 408.8 kB / 0.5911 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4826, allocations: 4 kB / 0.5911 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4826, allocations: 0 / 0.5911 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.4826, allocations: 3.984 kB / 0.5911 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.484, allocations: 0.8513 MB / 0.592 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.484, allocations: 4 kB / 0.592 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.4843, allocations: 51.91 kB / 0.592 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003352/0.4846, allocations: 172.7 kB / 0.5922 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.4847, allocations: 7.984 kB / 0.5922 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006172/0.4853, allocations: 0.6967 MB / 0.5929 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4853, allocations: 0 / 0.5929 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009427/0.4863, allocations: 0.5993 MB / 0.5935 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.4864, allocations: 124.9 kB / 0.5936 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.4864, allocations: 0 / 0.5936 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002776/0.4867, allocations: 48.02 kB / 0.5936 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.4869, allocations: 63.8 kB / 0.5937 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.4869, allocations: 15.98 kB / 0.5937 GB, free: 10.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.668e-05/0.487, allocations: 115.3 kB / 0.5938 GB, free: 10.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003903/0.4874, allocations: 72.11 kB / 0.5939 GB, free: 10.14 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.000194/0.4876, allocations: 121.1 kB / 0.594 GB, free: 10.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005608/0.4882, allocations: 305.6 kB / 0.5943 GB, free: 9.711 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4882, allocations: 128 / 0.5943 GB, free: 9.711 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.4885, allocations: 147.8 kB / 0.5944 GB, free: 9.566 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.4887, allocations: 19.08 kB / 0.5945 GB, free: 9.551 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009958/0.4898, allocations: 447.3 kB / 0.5949 GB, free: 9.086 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003692/0.4901, allocations: 0.7793 MB / 0.5956 GB, free: 8.281 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4901, allocations: 0 / 0.5956 GB, free: 8.281 MB / 410.7 MB Notification: Performance of Templates: time 0.008208/0.4984, allocations: 4.406 MB / 0.5999 GB, free: 3.887 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches