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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [: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.001522/0.001522, allocations: 181.9 kB / 8.135 MB, free: 2.223 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.154/1.154, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.000904/0.0009039, allocations: 89.61 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09604/0.09697, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.2822, allocations: 50.38 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07694/0.3592, allocations: 75.28 MB / 462.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.3595, allocations: 76.77 kB / 462.4 MB, free: 11.51 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.002571/0.3621, allocations: 0.8945 MB / 463.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.3621, allocations: 9.188 kB / 463.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.997e-05/0.3621, allocations: 7.906 kB / 463.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.3623, allocations: 175 kB / 463.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.3623, allocations: 4.75 kB / 463.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3623, allocations: 3.984 kB / 463.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.643e-05/0.3624, allocations: 12.84 kB / 463.5 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.3626, allocations: 107.3 kB / 463.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-06/0.3626, allocations: 0 / 463.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3626, allocations: 0 / 463.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.3627, allocations: 1.031 kB / 463.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001158/0.3628, allocations: 142.1 kB / 463.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.481e-05/0.3629, allocations: 49.53 kB / 463.8 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.126e-05/0.3629, allocations: 24.89 kB / 463.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.3629, allocations: 3.938 kB / 463.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.363, allocations: 38.5 kB / 463.8 MB, free: 9.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.363, allocations: 0 / 463.8 MB, free: 9.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001329/0.3631, allocations: 53.73 kB / 463.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.3632, allocations: 51.41 kB / 463.9 MB, free: 9.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.3632, allocations: 101 kB / 464 MB, free: 9.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.3633, allocations: 29.7 kB / 464.1 MB, free: 9.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.3633, allocations: 82.11 kB / 464.1 MB, free: 9.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.068e-05/0.3633, allocations: 4 kB / 464.1 MB, free: 9.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.3633, allocations: 0 / 464.1 MB, free: 9.578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.054e-05/0.3634, allocations: 318.8 kB / 464.4 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.667e-06/0.3634, allocations: 0 / 464.4 MB, free: 9.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.64e-05/0.3635, allocations: 27.44 kB / 464.5 MB, free: 9.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.849e-05/0.3635, allocations: 19.94 kB / 464.5 MB, free: 9.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3635, allocations: 0 / 464.5 MB, free: 9.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.388e-05/0.3636, allocations: 53.53 kB / 464.5 MB, free: 9.141 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.3636, allocations: 4 kB / 464.5 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.3636, allocations: 0 / 464.5 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.3636, allocations: 4 kB / 464.6 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.448e-05/0.3637, allocations: 8.125 kB / 464.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.3637, allocations: 4 kB / 464.6 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.2e-05/0.3637, allocations: 4.906 kB / 464.6 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.3637, allocations: 11.98 kB / 464.6 MB, free: 9.105 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 5.907e-05/0.3638, allocations: 108.9 kB / 464.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-05/0.3638, allocations: 53.59 kB / 464.7 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.243e-05/0.3639, allocations: 8 kB / 464.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3639, allocations: 0 / 464.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3639, allocations: 0 / 464.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3639, allocations: 0.5625 kB / 464.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.74e-05/0.364, allocations: 144.3 kB / 464.9 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.364, allocations: 3.938 kB / 464.9 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.3641, allocations: 15.98 kB / 464.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3641, allocations: 0 / 464.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3641, allocations: 11.89 kB / 464.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3641, allocations: 3.203 kB / 464.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3641, allocations: 0 / 464.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001011/0.3642, allocations: 84.97 kB / 465 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001849/0.3644, allocations: 457.4 kB / 465.5 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/0.3645, allocations: 77.11 kB / 465.5 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.3645, allocations: 4.188 kB / 465.5 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.107e-05/0.3646, allocations: 11.98 kB / 465.5 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-06/0.3646, allocations: 7.984 kB / 465.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.3646, allocations: 0 / 465.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-05/0.3647, allocations: 83.28 kB / 465.6 MB, free: 7.945 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000755/0.3654, allocations: 11.84 kB / 465.6 MB, free: 7.934 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.177e-05/0.3655, allocations: 99.23 kB / 465.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.439e-05/0.3656, allocations: 28.12 kB / 465.8 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.3656, allocations: 4.062 kB / 465.8 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.3656, allocations: 0 / 465.8 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.3658, allocations: 18.92 kB / 465.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002389/0.3661, allocations: 75.73 kB / 465.9 MB, free: 7.684 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.3663, allocations: 0.6993 MB / 466.6 MB, free: 6.961 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3663, allocations: 0 / 466.6 MB, free: 6.961 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1)