Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.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) 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(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 179.4 kB / 8.135 MB, free: 2.211 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.301/1.301, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009648/0.0009647, allocations: 93.06 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.543e-06/6.573e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2551, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09266/0.3478, allocations: 77.43 MB / 464.3 MB, free: 9.406 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.3481, allocations: 79.88 kB / 464.4 MB, free: 9.328 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007374/0.3555, allocations: 2.349 MB / 466.8 MB, free: 7.004 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.3556, allocations: 5.031 kB / 466.8 MB, free: 7 MB / 346.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.0005064/0.3561, allocations: 406 kB / 467.2 MB, free: 6.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3561, allocations: 8.031 kB / 467.2 MB, free: 6.551 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.3562, allocations: 15.81 kB / 467.2 MB, free: 6.535 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.3565, allocations: 199 kB / 467.4 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.3565, allocations: 8 kB / 467.4 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.3565, allocations: 8 kB / 467.4 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001891/0.3567, allocations: 73.02 kB / 467.5 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.3569, allocations: 112.2 kB / 467.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.357, allocations: 0 / 467.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.357, allocations: 0 / 467.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.357, allocations: 7.906 kB / 467.6 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008599/0.3579, allocations: 0.5058 MB / 468.1 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.92e-05/0.358, allocations: 53.66 kB / 468.1 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.102e-05/0.358, allocations: 30.34 kB / 468.2 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.3581, allocations: 0 / 468.2 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.3581, allocations: 34.56 kB / 468.2 MB, free: 5.406 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3581, allocations: 1.969 kB / 468.2 MB, free: 5.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008213/0.3589, allocations: 0.5204 MB / 468.7 MB, free: 4.793 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.359, allocations: 51.97 kB / 468.8 MB, free: 4.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.713e-05/0.3591, allocations: 120.3 kB / 468.9 MB, free: 4.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.3591, allocations: 25.7 kB / 468.9 MB, free: 4.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.3592, allocations: 131.9 kB / 469 MB, free: 4.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.3592, allocations: 39.45 kB / 469.1 MB, free: 4.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.3592, allocations: 0 / 469.1 MB, free: 4.406 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3594, allocations: 323.8 kB / 469.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.829e-05/0.3594, allocations: 23.98 kB / 469.4 MB, free: 4.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.667e-05/0.3595, allocations: 73.8 kB / 469.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.405e-05/0.3596, allocations: 39.92 kB / 469.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.3596, allocations: 0.75 kB / 469.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001934/0.3598, allocations: 137.3 kB / 469.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.3598, allocations: 4.094 kB / 469.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.3598, allocations: 3.938 kB / 469.7 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.3598, allocations: 4.188 kB / 469.7 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.36, allocations: 39.98 kB / 469.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.36, allocations: 1.875 kB / 469.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.3601, allocations: 4 kB / 469.7 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3601, allocations: 11.94 kB / 469.7 MB, free: 3.719 MB / 346.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 7.099e-05/0.3602, allocations: 109 kB / 469.8 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.349e-05/0.3602, allocations: 11.81 kB / 469.9 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.396e-05/0.3603, allocations: 16.38 kB / 469.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3603, allocations: 0 / 469.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3603, allocations: 0 / 469.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3603, allocations: 3.938 kB / 469.9 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004338/0.3607, allocations: 397.5 kB / 470.3 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3608, allocations: 0 / 470.3 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.3609, allocations: 28.05 kB / 470.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.3609, allocations: 11.92 kB / 470.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.3609, allocations: 0 / 470.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.361, allocations: 0 / 470.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.361, allocations: 6.188 kB / 470.3 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002467/0.3612, allocations: 248.5 kB / 470.6 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.63e-05/0.3613, allocations: 85.02 kB / 470.6 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.3613, allocations: 0 / 470.6 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.423e-05/0.3614, allocations: 4 kB / 470.6 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.937e-05/0.3615, allocations: 7.984 kB / 470.6 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.3615, allocations: 11.84 kB / 470.7 MB, free: 2.684 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.356e-05/0.3615, allocations: 99.33 kB / 470.8 MB, free: 2.586 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.3618, allocations: 28.11 kB / 470.8 MB, free: 2.559 MB / 346.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.0001222/0.3619, allocations: 103.2 kB / 470.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001498/0.3621, allocations: 71.86 kB / 471 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3621, allocations: 0 / 471 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.978e-05/0.3621, allocations: 36.22 kB / 471 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.3624, allocations: 8.688 kB / 471 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.3629, allocations: 275.8 kB / 471.3 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/0.3632, allocations: 0.7386 MB / 472 MB, free: 1.277 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3632, allocations: 0 / 472 MB, free: 1.277 MB / 346.7 MB Notification: Performance of Templates: time 0.003096/0.3663, allocations: 0.8871 MB / 472.9 MB, free: 412 kB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches