Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001091/0.001091, allocations: 199 kB / 8.537 MB, free: 1.789 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00087/0.00087, allocations: 96.73 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1747/0.1747, allocations: 45.14 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.801e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 63.23 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3208/0.4382, allocations: 91.55 MB / 0.5932 GB, free: 11.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001672/0.4384, allocations: 62.84 kB / 0.5932 GB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02088/0.4593, allocations: 7.553 MB / 0.6006 GB, free: 5.156 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.4594, allocations: 8 kB / 0.6006 GB, free: 5.148 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0008961/0.4603, allocations: 0.5741 MB / 0.6012 GB, free: 4.551 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.4603, allocations: 8.031 kB / 0.6012 GB, free: 4.543 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003101/0.4606, allocations: 59.52 kB / 0.6012 GB, free: 4.484 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.461, allocations: 282.7 kB / 0.6015 GB, free: 4.188 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.461, allocations: 12 kB / 0.6015 GB, free: 4.176 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.397e-05/0.4611, allocations: 27.75 kB / 0.6015 GB, free: 4.152 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003547/0.4615, allocations: 183 kB / 0.6017 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.462, allocations: 293.1 kB / 0.602 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.462, allocations: 7.547 kB / 0.602 GB, free: 3.781 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.462, allocations: 3.906 kB / 0.602 GB, free: 3.777 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.4621, allocations: 12 kB / 0.602 GB, free: 3.766 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.4643, allocations: 1.509 MB / 0.6035 GB, free: 2.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.4648, allocations: 260.5 kB / 0.6037 GB, free: 2.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.4649, allocations: 82.81 kB / 0.6038 GB, free: 1.988 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.465, allocations: 0 / 0.6038 GB, free: 1.988 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.465, allocations: 50.97 kB / 0.6039 GB, free: 1.934 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.242e-06/0.465, allocations: 0 / 0.6039 GB, free: 1.934 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004613/0.4655, allocations: 175 kB / 0.604 GB, free: 1.785 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.4656, allocations: 199.3 kB / 0.6042 GB, free: 1.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.4658, allocations: 185.7 kB / 0.6044 GB, free: 1.383 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.4658, allocations: 29.69 kB / 0.6044 GB, free: 1.348 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.466, allocations: 196.8 kB / 0.6046 GB, free: 1.168 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.783e-05/0.466, allocations: 97.31 kB / 0.6047 GB, free: 1.086 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.466, allocations: 0 / 0.6047 GB, free: 1.086 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.4662, allocations: 344.7 kB / 0.605 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.4663, allocations: 61.38 kB / 0.6051 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.4665, allocations: 231.9 kB / 0.6053 GB, free: 468 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.4667, allocations: 110.2 kB / 0.6054 GB, free: 388 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.4667, allocations: 7.906 kB / 0.6054 GB, free: 380 kB / 394.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004907/0.4672, allocations: 307.8 kB / 0.6057 GB, free: 124 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.4672, allocations: 7.938 kB / 0.6057 GB, free: 116 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.4673, allocations: 8 kB / 0.6057 GB, free: 108 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.4673, allocations: 12.53 kB / 0.6058 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004048/0.4677, allocations: 110.7 kB / 0.6059 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.4677, allocations: 11.94 kB / 0.6059 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.468, allocations: 31.62 kB / 0.6059 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.468, allocations: 18.94 kB / 0.6059 GB, free: 15.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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 0.0001098/0.4681, allocations: 128.1 kB / 0.606 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.4683, allocations: 27.72 kB / 0.6061 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.4684, allocations: 89.2 kB / 0.6061 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.4685, allocations: 4 kB / 0.6062 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4685, allocations: 0 / 0.6062 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4685, allocations: 4 kB / 0.6062 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005824/0.4691, allocations: 293.8 kB / 0.6064 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.4691, allocations: 4 kB / 0.6064 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.4695, allocations: 83.2 kB / 0.6065 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4696, allocations: 4 kB / 0.6065 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.4696, allocations: 7.375 kB / 0.6065 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.4696, allocations: 7.922 kB / 0.6065 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4696, allocations: 8 kB / 0.6065 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006436/0.4703, allocations: 0.7812 MB / 0.6073 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.198e-05/0.4703, allocations: 100.3 kB / 0.6074 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.4704, allocations: 4 kB / 0.6074 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003409/0.4707, allocations: 11.92 kB / 0.6074 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.4708, allocations: 35.5 kB / 0.6075 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.4708, allocations: 8 kB / 0.6075 GB, free: 14.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001166/0.471, allocations: 145.5 kB / 0.6076 GB, free: 14.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005784/0.4715, allocations: 83.75 kB / 0.6077 GB, free: 14.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T,inertia6.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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.0001353/0.4717, allocations: 108.2 kB / 0.6078 GB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000325/0.472, allocations: 201.4 kB / 0.608 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.472, allocations: 4.125 kB / 0.608 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.4721, allocations: 84.55 kB / 0.6081 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.4728, allocations: 49.78 kB / 0.6081 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.4747, allocations: 1.164 MB / 0.6092 GB, free: 12.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004921/0.4752, allocations: 0.8372 MB / 0.6101 GB, free: 11.77 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4752, allocations: 0 / 0.6101 GB, free: 11.77 MB / 410.7 MB Notification: Performance of Templates: time 0.00683/0.4821, allocations: 3.086 MB / 0.6131 GB, free: 8.73 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches