Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Translational.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.Translational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|mass3.s|mass3.v|mass4.s|mass4.v|mass5.s|mass5.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking") translateModel(ModelicaTest.Translational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|mass3.s|mass3.v|mass4.s|mass4.v|mass5.s|mass5.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Translational.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.0009898/0.0009898, allocations: 175.6 kB / 8.517 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.281/1.281, allocations: 221.4 MB / 230.3 MB, free: 7.668 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.0008854/0.0008854, allocations: 98.41 kB / 281.2 MB, free: 5.469 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.1662/0.1662, allocations: 44.15 MB / 376.1 MB, free: 3.188 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.22e-06/5.25e-06, allocations: 224 / 444 MB, free: 15.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 61.91 MB / 0.4941 GB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3053/0.4293, allocations: 89.65 MB / 0.5816 GB, free: 7.125 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001504/0.4295, allocations: 63.97 kB / 0.5817 GB, free: 7.062 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01787/0.4474, allocations: 6.311 MB / 0.5878 GB, free: 0.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.4474, allocations: 8 kB / 0.5879 GB, free: 0.7422 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.000838/0.4483, allocations: 0.5383 MB / 0.5884 GB, free: 164 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.4483, allocations: 15.97 kB / 0.5884 GB, free: 148 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.4486, allocations: 51.52 kB / 0.5884 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.449, allocations: 266.2 kB / 0.5887 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.449, allocations: 8 kB / 0.5887 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-05/0.4491, allocations: 23.91 kB / 0.5887 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000358/0.4494, allocations: 165.3 kB / 0.5889 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.4499, allocations: 253.4 kB / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.4499, allocations: 4 kB / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.4499, allocations: 3.938 kB / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.45, allocations: 11.91 kB / 0.5891 GB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.4518, allocations: 1.234 MB / 0.5904 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004294/0.4523, allocations: 265.4 kB / 0.5906 GB, free: 13.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.4524, allocations: 88.36 kB / 0.5907 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.4525, allocations: 4 kB / 0.5907 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.4525, allocations: 47.5 kB / 0.5907 GB, free: 13.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=36): time 2.395e-06/0.4525, allocations: 4 kB / 0.5907 GB, free: 13.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.001708/0.4542, allocations: 1.275 MB / 0.592 GB, free: 12.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.4543, allocations: 166.2 kB / 0.5921 GB, free: 11.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.4545, allocations: 175.8 kB / 0.5923 GB, free: 11.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.4545, allocations: 33.69 kB / 0.5923 GB, free: 11.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.833e-05/0.4546, allocations: 156.2 kB / 0.5925 GB, free: 11.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.4548, allocations: 149.8 kB / 0.5926 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.4548, allocations: 0 / 0.5926 GB, free: 11.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4549, allocations: 342.7 kB / 0.593 GB, free: 10.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.4551, allocations: 81 kB / 0.593 GB, free: 10.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.4553, allocations: 222.5 kB / 0.5933 GB, free: 10.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.4555, allocations: 115.9 kB / 0.5934 GB, free: 10.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4555, allocations: 4 kB / 0.5934 GB, free: 10.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005312/0.4561, allocations: 347.8 kB / 0.5937 GB, free: 10.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.4561, allocations: 4 kB / 0.5937 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4561, allocations: 8.375 kB / 0.5937 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.4561, allocations: 12 kB / 0.5937 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.4566, allocations: 111.9 kB / 0.5938 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.4566, allocations: 11.98 kB / 0.5938 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.4568, allocations: 11.98 kB / 0.5939 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.4568, allocations: 23.94 kB / 0.5939 GB, free: 9.988 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 (62): * Single equations (assignments): 62 * 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.0001087/0.4569, allocations: 124.7 kB / 0.594 GB, free: 9.859 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.4571, allocations: 27.72 kB / 0.594 GB, free: 9.832 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.4573, allocations: 111.2 kB / 0.5941 GB, free: 9.719 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.4573, allocations: 8.094 kB / 0.5941 GB, free: 9.711 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.4573, allocations: 3.938 kB / 0.5941 GB, free: 9.707 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4573, allocations: 0 / 0.5941 GB, free: 9.707 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.4588, allocations: 0.9442 MB / 0.5951 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.4588, allocations: 4 kB / 0.5951 GB, free: 8.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.4593, allocations: 96.14 kB / 0.5952 GB, free: 8.594 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.4593, allocations: 12 kB / 0.5952 GB, free: 8.582 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.4593, allocations: 8.125 kB / 0.5952 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.551e-05/0.4594, allocations: 11.92 kB / 0.5952 GB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4594, allocations: 4 kB / 0.5952 GB, free: 8.559 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008794/0.4603, allocations: 0.9277 MB / 0.5961 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.754e-05/0.4603, allocations: 104.7 kB / 0.5962 GB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.4604, allocations: 8 kB / 0.5962 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.4607, allocations: 4 kB / 0.5962 GB, free: 7.371 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.4608, allocations: 23.88 kB / 0.5962 GB, free: 7.348 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.4608, allocations: 16 kB / 0.5962 GB, free: 7.332 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001119/0.4609, allocations: 140.5 kB / 0.5964 GB, free: 7.191 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000576/0.4615, allocations: 72 kB / 0.5964 GB, free: 7.121 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 11 (mass5.s,mass5.v,heatCapacitor.T,mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.0001364/0.4617, allocations: 113.1 kB / 0.5966 GB, free: 7.004 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.4621, allocations: 243.6 kB / 0.5968 GB, free: 6.766 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4621, allocations: 0 / 0.5968 GB, free: 6.766 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.4623, allocations: 121 kB / 0.5969 GB, free: 6.648 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005841/0.4628, allocations: 48.41 kB / 0.5969 GB, free: 6.602 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.4646, allocations: 1.093 MB / 0.598 GB, free: 5.449 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005918/0.4652, allocations: 0.8227 MB / 0.5988 GB, free: 4.598 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4653, allocations: 0 / 0.5988 GB, free: 4.598 MB / 410.7 MB Notification: Performance of Templates: time 0.006799/0.4721, allocations: 3.142 MB / 0.6019 GB, free: 1.48 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Translational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches