Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.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.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",fileNamePrefix="ModelicaTest_3.2.3_cpp_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",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001755/0.001754, allocations: 176 kB / 8.15 MB, free: 2.184 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.798/1.798, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001312/0.001311, allocations: 93.28 kB / 261.8 MB, free: 13.62 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.3035/0.3035, allocations: 43.49 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.796e-06/9.297e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2726, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.4327, allocations: 88.51 MB / 0.5518 GB, free: 10.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.433, allocations: 71.47 kB / 0.5519 GB, free: 10.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02964/0.4627, allocations: 6.19 MB / 0.5579 GB, free: 4.281 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.964e-05/0.4628, allocations: 16 kB / 0.5579 GB, free: 4.266 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.001219/0.464, allocations: 0.5339 MB / 0.5584 GB, free: 3.688 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4641, allocations: 11.97 kB / 0.5585 GB, free: 3.676 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003372/0.4644, allocations: 55.52 kB / 0.5585 GB, free: 3.621 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/0.4649, allocations: 254.5 kB / 0.5587 GB, free: 3.332 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.4649, allocations: 12 kB / 0.5588 GB, free: 3.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.928e-05/0.465, allocations: 27.91 kB / 0.5588 GB, free: 3.293 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006/0.4656, allocations: 173.2 kB / 0.559 GB, free: 3.121 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006214/0.4663, allocations: 241.5 kB / 0.5592 GB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/0.4663, allocations: 8 kB / 0.5592 GB, free: 2.852 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.4664, allocations: 3.906 kB / 0.5592 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.4664, allocations: 8 kB / 0.5592 GB, free: 2.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003144/0.4695, allocations: 1.23 MB / 0.5604 GB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006971/0.4703, allocations: 258.6 kB / 0.5606 GB, free: 1.238 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.4706, allocations: 92.3 kB / 0.5607 GB, free: 1.133 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.4706, allocations: 16.39 kB / 0.5608 GB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.4707, allocations: 42.55 kB / 0.5608 GB, free: 1.066 MB / 394.7 MB Notification: Performance of pre-optimization done (n=36): time 4.077e-06/0.4707, allocations: 0 / 0.5608 GB, free: 1.066 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.002623/0.4733, allocations: 1.279 MB / 0.562 GB, free: 15.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.4735, allocations: 166.1 kB / 0.5622 GB, free: 15.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.4738, allocations: 175.9 kB / 0.5624 GB, free: 15.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.4738, allocations: 25.7 kB / 0.5624 GB, free: 15.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.474, allocations: 226.7 kB / 0.5626 GB, free: 14.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.4742, allocations: 141.9 kB / 0.5627 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-05/0.4742, allocations: 4 kB / 0.5627 GB, free: 14.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.4744, allocations: 334.7 kB / 0.5631 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.4747, allocations: 81 kB / 0.5631 GB, free: 14.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003992/0.4751, allocations: 226.5 kB / 0.5634 GB, free: 14.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.4755, allocations: 116.8 kB / 0.5635 GB, free: 14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.4755, allocations: 0 / 0.5635 GB, free: 14 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000941/0.4765, allocations: 337.2 kB / 0.5638 GB, free: 13.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4765, allocations: 6.969 kB / 0.5638 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.4765, allocations: 8 kB / 0.5638 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.583e-05/0.4766, allocations: 8 kB / 0.5638 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008763/0.4775, allocations: 115.8 kB / 0.5639 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.211e-05/0.4775, allocations: 15.84 kB / 0.5639 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.4778, allocations: 8 kB / 0.5639 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.4779, allocations: 20.31 kB / 0.564 GB, free: 13.47 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.000123/0.478, allocations: 50.92 kB / 0.564 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.4782, allocations: 35.61 kB / 0.5641 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000401/0.4787, allocations: 99.33 kB / 0.5641 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.4787, allocations: 4 kB / 0.5641 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4787, allocations: 4 kB / 0.5642 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.4787, allocations: 3.984 kB / 0.5642 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.481, allocations: 0.9481 MB / 0.5651 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.4811, allocations: 4 kB / 0.5651 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009665/0.482, allocations: 103.8 kB / 0.5652 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.462e-05/0.4821, allocations: 8 kB / 0.5652 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.4821, allocations: 4 kB / 0.5652 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.131e-05/0.4822, allocations: 7.906 kB / 0.5652 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/0.4822, allocations: 4 kB / 0.5652 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001435/0.4836, allocations: 0.9321 MB / 0.5661 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.4838, allocations: 100.8 kB / 0.5662 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.242e-05/0.4839, allocations: 4 kB / 0.5662 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005495/0.4844, allocations: 4 kB / 0.5662 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.371e-05/0.4845, allocations: 35.86 kB / 0.5663 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.4846, allocations: 16 kB / 0.5663 GB, free: 10.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002002/0.4848, allocations: 136.5 kB / 0.5664 GB, free: 10.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008171/0.4856, allocations: 71.98 kB / 0.5665 GB, free: 10.68 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.0001832/0.4858, allocations: 99.19 kB / 0.5666 GB, free: 10.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007481/0.4866, allocations: 244.3 kB / 0.5668 GB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.4866, allocations: 0 / 0.5668 GB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.4869, allocations: 119.8 kB / 0.5669 GB, free: 10.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009569/0.4879, allocations: 55.86 kB / 0.567 GB, free: 10.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.4909, allocations: 1.129 MB / 0.5681 GB, free: 8.969 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006685/0.4916, allocations: 0.8266 MB / 0.5689 GB, free: 8.113 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4916, allocations: 3.938 kB / 0.5689 GB, free: 8.109 MB / 410.7 MB Notification: Performance of Templates: time 0.00958/0.5012, allocations: 3.803 MB / 0.5726 GB, free: 4.309 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Translational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Translational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches