Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") [: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.001031/0.001031, allocations: 178.7 kB / 8.519 MB, free: 1.859 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.258/1.258, allocations: 221.4 MB / 230.3 MB, free: 7.629 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.0008739/0.0008739, allocations: 85.86 kB / 281.2 MB, free: 5.445 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.1776/0.1776, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.143e-06/7.163e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.316/0.4223, allocations: 89.75 MB / 0.5817 GB, free: 6.988 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.4226, allocations: 66.06 kB / 0.5818 GB, free: 6.957 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01763/0.4402, allocations: 5.859 MB / 0.5875 GB, free: 1.145 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.38e-05/0.4403, allocations: 7.984 kB / 0.5875 GB, free: 1.137 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001081/0.4414, allocations: 0.5181 MB / 0.588 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.179e-05/0.4415, allocations: 8.031 kB / 0.588 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.4419, allocations: 51.59 kB / 0.5881 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004613/0.4423, allocations: 254.4 kB / 0.5883 GB, free: 228 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.4424, allocations: 8 kB / 0.5883 GB, free: 220 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.793e-05/0.4425, allocations: 35.89 kB / 0.5884 GB, free: 184 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004003/0.4429, allocations: 145.3 kB / 0.5885 GB, free: 36 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004855/0.4434, allocations: 245.4 kB / 0.5887 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.418e-05/0.4434, allocations: 7.906 kB / 0.5887 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.4435, allocations: 0 / 0.5887 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.4435, allocations: 8 kB / 0.5887 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.4456, allocations: 1.283 MB / 0.59 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.446, allocations: 204.5 kB / 0.5902 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.4461, allocations: 72.23 kB / 0.5903 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.4462, allocations: 4 kB / 0.5903 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.4462, allocations: 42.59 kB / 0.5903 GB, free: 14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.903e-06/0.4462, allocations: 0 / 0.5903 GB, free: 14 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004687/0.4467, allocations: 149.4 kB / 0.5905 GB, free: 13.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/0.4468, allocations: 166.2 kB / 0.5906 GB, free: 13.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.447, allocations: 178 kB / 0.5908 GB, free: 13.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.447, allocations: 25.7 kB / 0.5908 GB, free: 13.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.652e-05/0.4471, allocations: 175.7 kB / 0.591 GB, free: 13.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.428e-05/0.4472, allocations: 86.7 kB / 0.5911 GB, free: 13.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.4472, allocations: 0 / 0.5911 GB, free: 13.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4473, allocations: 334.8 kB / 0.5914 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.4474, allocations: 55.98 kB / 0.5914 GB, free: 12.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.4476, allocations: 191.9 kB / 0.5916 GB, free: 12.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.4478, allocations: 96.12 kB / 0.5917 GB, free: 12.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.4478, allocations: 0 / 0.5917 GB, free: 12.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004548/0.4482, allocations: 269.2 kB / 0.592 GB, free: 12.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.4483, allocations: 4 kB / 0.592 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.4483, allocations: 4 kB / 0.592 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.4483, allocations: 8 kB / 0.592 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.4486, allocations: 87.89 kB / 0.5921 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.4486, allocations: 15.84 kB / 0.5921 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.4488, allocations: 23.69 kB / 0.5921 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.4489, allocations: 24.12 kB / 0.5921 GB, free: 12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.286e-05/0.449, allocations: 117 kB / 0.5922 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.4491, allocations: 27.7 kB / 0.5923 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001714/0.4493, allocations: 79.08 kB / 0.5923 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4493, allocations: 4 kB / 0.5923 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.4493, allocations: 4 kB / 0.5923 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4493, allocations: 0 / 0.5923 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005418/0.4499, allocations: 261.9 kB / 0.5926 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4499, allocations: 3.906 kB / 0.5926 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.4502, allocations: 71.91 kB / 0.5927 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.794e-06/0.4503, allocations: 4 kB / 0.5927 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.4503, allocations: 4 kB / 0.5927 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.4503, allocations: 4.234 kB / 0.5927 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.4503, allocations: 0 / 0.5927 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005379/0.4509, allocations: 0.6651 MB / 0.5933 GB, free: 10.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.4509, allocations: 96.95 kB / 0.5934 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/0.451, allocations: 7.922 kB / 0.5934 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.4513, allocations: 7.906 kB / 0.5934 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.4513, allocations: 19.98 kB / 0.5934 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.4513, allocations: 4 kB / 0.5935 GB, free: 10.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.952e-05/0.4514, allocations: 135.9 kB / 0.5936 GB, free: 10.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005769/0.452, allocations: 75.75 kB / 0.5937 GB, free: 10.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001238/0.4521, allocations: 99.12 kB / 0.5937 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.4524, allocations: 164.7 kB / 0.5939 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4525, allocations: 8.062 kB / 0.5939 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.34e-05/0.4526, allocations: 71.86 kB / 0.594 GB, free: 9.965 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005736/0.4531, allocations: 39.58 kB / 0.594 GB, free: 9.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.4547, allocations: 0.9681 MB / 0.595 GB, free: 8.922 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/0.4552, allocations: 0.8102 MB / 0.5958 GB, free: 8.086 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4552, allocations: 0 / 0.5958 GB, free: 8.086 MB / 410.7 MB Notification: Performance of Templates: time 0.006178/0.4614, allocations: 2.54 MB / 0.5982 GB, free: 5.582 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches