Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") [: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.001434/0.001434, allocations: 187.4 kB / 8.141 MB, free: 2.191 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.228/1.228, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0008675/0.0008675, allocations: 104.1 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.492e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1807, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07534/0.2561, allocations: 75.28 MB / 462.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.2564, allocations: 76.69 kB / 462.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002193/0.2586, allocations: 0.5567 MB / 462.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.2586, allocations: 0.625 kB / 462.8 MB, free: 10.93 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.0003612/0.259, allocations: 348.7 kB / 463.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.259, allocations: 8.969 kB / 463.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.911e-05/0.259, allocations: 4.469 kB / 463.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.2592, allocations: 179.6 kB / 463.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.2592, allocations: 0 / 463.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.2592, allocations: 4.75 kB / 463.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.927e-05/0.2593, allocations: 19.94 kB / 463.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.2595, allocations: 104.2 kB / 463.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.2595, allocations: 2.344 kB / 463.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.2595, allocations: 0 / 463.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.2596, allocations: 0 / 463.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.2597, allocations: 142.1 kB / 463.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.079e-05/0.2598, allocations: 50.44 kB / 463.7 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.14e-05/0.2598, allocations: 20.89 kB / 463.7 MB, free: 9.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.2599, allocations: 8.125 kB / 463.7 MB, free: 9.922 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.2599, allocations: 34.56 kB / 463.7 MB, free: 9.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.2599, allocations: 0 / 463.7 MB, free: 9.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001367/0.26, allocations: 49.59 kB / 463.8 MB, free: 9.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.2601, allocations: 55.41 kB / 463.8 MB, free: 9.758 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.734e-05/0.2602, allocations: 93 kB / 463.9 MB, free: 9.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.2602, allocations: 25.7 kB / 463.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.2602, allocations: 90.95 kB / 464 MB, free: 9.539 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.2602, allocations: 11.92 kB / 464 MB, free: 9.527 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/0.2602, allocations: 0 / 464 MB, free: 9.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.101e-05/0.2603, allocations: 310.8 kB / 464.4 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.21e-05/0.2604, allocations: 8 kB / 464.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.117e-05/0.2604, allocations: 23.44 kB / 464.4 MB, free: 9.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.121e-05/0.2604, allocations: 15.98 kB / 464.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2604, allocations: 0 / 464.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.685e-05/0.2605, allocations: 53.55 kB / 464.5 MB, free: 9.098 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.2605, allocations: 8 kB / 464.5 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.2605, allocations: 0 / 464.5 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.2605, allocations: 0 / 464.5 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.068e-05/0.2606, allocations: 12.64 kB / 464.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2606, allocations: 11.19 kB / 464.5 MB, free: 9.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.333e-05/0.2606, allocations: 7.906 kB / 464.5 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.2606, allocations: 0 / 464.5 MB, free: 9.062 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: 2 (ramp.counter,$CLKPRE.ramp.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.062e-05/0.2607, allocations: 108.9 kB / 464.6 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.917e-05/0.2608, allocations: 49.59 kB / 464.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.2608, allocations: 8 kB / 464.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2608, allocations: 4.75 kB / 464.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2608, allocations: 0.875 kB / 464.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2608, allocations: 0 / 464.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.691e-05/0.2609, allocations: 146.2 kB / 464.8 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2609, allocations: 0 / 464.8 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.261, allocations: 19.97 kB / 464.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.261, allocations: 0 / 464.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.2611, allocations: 4.656 kB / 464.8 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.2611, allocations: 0.9375 kB / 464.8 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2611, allocations: 3.938 kB / 464.8 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.49e-05/0.2612, allocations: 81.03 kB / 464.9 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.2612, allocations: 85.09 kB / 465 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.2612, allocations: 0 / 465 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.625e-05/0.2613, allocations: 13.36 kB / 465 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.094e-06/0.2613, allocations: 0 / 465 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.2614, allocations: 0 / 465 MB, free: 8.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.816e-05/0.2614, allocations: 83.28 kB / 465.1 MB, free: 8.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001888/0.2616, allocations: 11.91 kB / 465.1 MB, free: 8.367 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: 1 (ramp.counter) * 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.113e-05/0.2617, allocations: 103.2 kB / 465.2 MB, free: 8.258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.372e-05/0.2618, allocations: 23.92 kB / 465.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2618, allocations: 0 / 465.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.3e-07/0.2618, allocations: 0 / 465.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.262, allocations: 23.06 kB / 465.2 MB, free: 8.215 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002128/0.2622, allocations: 76.12 kB / 465.3 MB, free: 8.117 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.2624, allocations: 0.7032 MB / 466 MB, free: 7.391 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2625, allocations: 0 / 466 MB, free: 7.391 MB / 346.7 MB Notification: Performance of Templates: time 0.00206/0.2645, allocations: 464.3 kB / 466.5 MB, free: 6.953 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches