Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors") [: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 3.2.3+maint.om/package.mo): time 0.002504/0.002504, allocations: 178.5 kB / 8.15 MB, free: 2.152 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.2 MB / 213.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001337/0.001337, allocations: 89.55 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.051e-05/1.06e-05, allocations: 4 kB / 314.3 MB, free: 9.074 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2336, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1182/0.3518, allocations: 76.45 MB / 438.3 MB, free: 9.617 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.3521, allocations: 68.45 kB / 438.3 MB, free: 9.551 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01126/0.3634, allocations: 2.259 MB / 440.6 MB, free: 7.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.3634, allocations: 4 kB / 440.6 MB, free: 7.332 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006314/0.3641, allocations: 408.4 kB / 441 MB, free: 6.891 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3641, allocations: 8.781 kB / 441 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.3642, allocations: 15.81 kB / 441 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.3645, allocations: 199.5 kB / 441.2 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.3645, allocations: 11.34 kB / 441.2 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.3646, allocations: 15.94 kB / 441.3 MB, free: 6.609 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002743/0.3649, allocations: 71.98 kB / 441.3 MB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.3652, allocations: 103.8 kB / 441.4 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3652, allocations: 0 / 441.4 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.3652, allocations: 3.906 kB / 441.4 MB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3653, allocations: 4 kB / 441.4 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.3664, allocations: 0.5016 MB / 441.9 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.3666, allocations: 49.72 kB / 442 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.333e-05/0.3667, allocations: 34.14 kB / 442 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.3667, allocations: 0 / 442 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.3668, allocations: 38.69 kB / 442.1 MB, free: 5.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.3668, allocations: 0 / 442.1 MB, free: 5.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.00108/0.3679, allocations: 0.5173 MB / 442.6 MB, free: 5.141 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.3679, allocations: 51.41 kB / 442.6 MB, free: 5.078 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.3681, allocations: 127.9 kB / 442.7 MB, free: 4.949 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.3681, allocations: 25.7 kB / 442.8 MB, free: 4.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3682, allocations: 202.3 kB / 443 MB, free: 4.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.39e-05/0.3683, allocations: 35.47 kB / 443 MB, free: 4.684 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.3683, allocations: 0 / 443 MB, free: 4.684 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.3684, allocations: 326.8 kB / 443.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.568e-05/0.3685, allocations: 20 kB / 443.3 MB, free: 4.336 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.3687, allocations: 74.86 kB / 443.4 MB, free: 4.238 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.3688, allocations: 39.92 kB / 443.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3688, allocations: 0 / 443.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003163/0.3691, allocations: 119.1 kB / 443.6 MB, free: 4.078 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3691, allocations: 4 kB / 443.6 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3692, allocations: 4 kB / 443.6 MB, free: 4.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3692, allocations: 4 kB / 443.6 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003293/0.3695, allocations: 48.09 kB / 443.6 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3696, allocations: 7.906 kB / 443.6 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3697, allocations: 4 kB / 443.6 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.3697, allocations: 4 kB / 443.6 MB, free: 4.004 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 6.607e-05/0.3698, allocations: 33.64 kB / 443.7 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.454e-05/0.3698, allocations: 7.906 kB / 443.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.3699, allocations: 8.375 kB / 443.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.3699, allocations: 4 kB / 443.7 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.37, allocations: 7.984 kB / 443.7 MB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.37, allocations: 3.906 kB / 443.7 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007045/0.3707, allocations: 393.3 kB / 444.1 MB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/0.3707, allocations: 5.562 kB / 444.1 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/0.371, allocations: 28.05 kB / 444.1 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.3711, allocations: 0.8438 kB / 444.1 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3711, allocations: 4 kB / 444.1 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3711, allocations: 0 / 444.1 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3711, allocations: 3.906 kB / 444.1 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004021/0.3715, allocations: 258.7 kB / 444.4 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-05/0.3716, allocations: 81.02 kB / 444.5 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.393e-05/0.3716, allocations: 7.984 kB / 444.5 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.3718, allocations: 1.406 kB / 444.5 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.3719, allocations: 11.98 kB / 444.5 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.3719, allocations: 6.562 kB / 444.5 MB, free: 3.051 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.055e-05/0.372, allocations: 91.28 kB / 444.6 MB, free: 2.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003474/0.3723, allocations: 24.06 kB / 444.6 MB, free: 2.938 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001519/0.3725, allocations: 103.2 kB / 444.7 MB, free: 2.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.3728, allocations: 67.94 kB / 444.8 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3728, allocations: 0 / 444.8 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.671e-05/0.3729, allocations: 35.94 kB / 444.8 MB, free: 2.727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.3732, allocations: 13.39 kB / 444.8 MB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009135/0.3741, allocations: 314.7 kB / 445.1 MB, free: 2.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003691/0.3745, allocations: 0.7386 MB / 445.9 MB, free: 1.613 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3745, allocations: 0 / 445.9 MB, free: 1.613 MB / 330.7 MB Notification: Performance of Templates: time 0.004165/0.3787, allocations: 1.426 MB / 447.3 MB, free: 216 kB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches