Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") [: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.001542/0.001542, allocations: 183.7 kB / 8.138 MB, free: 2.184 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.239/1.239, allocations: 221.4 MB / 229.9 MB, free: 3.102 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.0008956/0.0008956, allocations: 93.31 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.753e-06/6.793e-06, allocations: 0 / 336.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1879, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07831/0.2662, allocations: 75.72 MB / 462.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.2665, allocations: 87.81 kB / 462.7 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002978/0.2695, allocations: 0.7702 MB / 463.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.2696, allocations: 4 kB / 463.5 MB, free: 10.25 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003718/0.2699, allocations: 342.5 kB / 463.8 MB, free: 9.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.27, allocations: 8.031 kB / 463.8 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.508e-05/0.27, allocations: 13.88 kB / 463.8 MB, free: 9.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.2702, allocations: 178.9 kB / 464 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-06/0.2702, allocations: 0 / 464 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.2703, allocations: 4 kB / 464 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.766e-05/0.2703, allocations: 12 kB / 464 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.2706, allocations: 102.1 kB / 464.1 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.2706, allocations: 0 / 464.1 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.2706, allocations: 11.98 kB / 464.1 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.2706, allocations: 3.906 kB / 464.1 MB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001167/0.2708, allocations: 134.2 kB / 464.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.079e-05/0.2709, allocations: 42.59 kB / 464.3 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.076e-05/0.2709, allocations: 20.86 kB / 464.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.2709, allocations: 0 / 464.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.271, allocations: 39.44 kB / 464.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.271, allocations: 0 / 464.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001374/0.2711, allocations: 53.73 kB / 464.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.2711, allocations: 51.41 kB / 464.5 MB, free: 9.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.169e-05/0.2712, allocations: 97 kB / 464.6 MB, free: 8.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.2712, allocations: 25.7 kB / 464.6 MB, free: 8.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.056e-05/0.2713, allocations: 84.12 kB / 464.7 MB, free: 8.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.2713, allocations: 4 kB / 464.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.2713, allocations: 1.031 kB / 464.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.139e-05/0.2714, allocations: 322.8 kB / 465 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-06/0.2714, allocations: 0 / 465 MB, free: 8.539 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.312e-05/0.2715, allocations: 27.44 kB / 465 MB, free: 8.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.807e-05/0.2715, allocations: 11.92 kB / 465 MB, free: 8.488 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2715, allocations: 0 / 465 MB, free: 8.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.303e-05/0.2716, allocations: 57.55 kB / 465.1 MB, free: 8.426 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.2716, allocations: 5.094 kB / 465.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2716, allocations: 0 / 465.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.2716, allocations: 3.984 kB / 465.1 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.804e-05/0.2717, allocations: 8 kB / 465.1 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2717, allocations: 0.8438 kB / 465.1 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.252e-05/0.2717, allocations: 4 kB / 465.1 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.2717, allocations: 4.609 kB / 465.1 MB, free: 8.406 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.417e-05/0.2718, allocations: 111.8 kB / 465.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.54e-05/0.2718, allocations: 53.62 kB / 465.3 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.2719, allocations: 8 kB / 465.3 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2719, allocations: 0 / 465.3 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2719, allocations: 3.906 kB / 465.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2719, allocations: 0 / 465.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.376e-05/0.272, allocations: 138.8 kB / 465.4 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.272, allocations: 0 / 465.4 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.242e-05/0.2721, allocations: 19.98 kB / 465.4 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.2721, allocations: 4 kB / 465.5 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-06/0.2721, allocations: 0 / 465.5 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2721, allocations: 0 / 465.5 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2721, allocations: 4 kB / 465.5 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.909e-05/0.2722, allocations: 80.97 kB / 465.5 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.187e-05/0.2723, allocations: 81.25 kB / 465.6 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.2723, allocations: 4 kB / 465.6 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.307e-05/0.2724, allocations: 11.98 kB / 465.6 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-06/0.2724, allocations: 3.984 kB / 465.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.2724, allocations: 0 / 465.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.67e-05/0.2724, allocations: 83.28 kB / 465.7 MB, free: 7.727 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001818/0.2726, allocations: 4 kB / 465.7 MB, free: 7.723 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 9.293e-05/0.2727, allocations: 99.25 kB / 465.8 MB, free: 7.617 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.965e-05/0.2728, allocations: 27.92 kB / 465.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2728, allocations: 3.938 kB / 465.8 MB, free: 7.586 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.723e-06/0.2728, allocations: 3.938 kB / 465.9 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.273, allocations: 25.3 kB / 465.9 MB, free: 7.559 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001807/0.2732, allocations: 63.78 kB / 465.9 MB, free: 7.473 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002317/0.2735, allocations: 0.6996 MB / 466.6 MB, free: 6.75 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2735, allocations: 4 kB / 466.6 MB, free: 6.746 MB / 346.7 MB Notification: Performance of Templates: time 0.001997/0.2755, allocations: 355 kB / 467 MB, free: 6.414 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches