Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",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.001455/0.001455, allocations: 180.8 kB / 8.128 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.149/1.149, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008949/0.0008952, allocations: 105.5 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09548/0.09641, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.288, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07677/0.3648, allocations: 75.27 MB / 462.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.3651, allocations: 79.89 kB / 462.3 MB, free: 11.53 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.002049/0.3671, allocations: 0.7915 MB / 463.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3672, allocations: 9.156 kB / 463.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.3672, allocations: 7.906 kB / 463.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.3674, allocations: 171 kB / 463.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3674, allocations: 1.094 kB / 463.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.3674, allocations: 4 kB / 463.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.409e-05/0.3675, allocations: 15.19 kB / 463.3 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.3677, allocations: 96.19 kB / 463.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.3677, allocations: 3.984 kB / 463.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.3677, allocations: 0 / 463.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3677, allocations: 4 kB / 463.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.42e-05/0.3678, allocations: 135.1 kB / 463.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.72e-05/0.3679, allocations: 42.88 kB / 463.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.454e-05/0.368, allocations: 18.64 kB / 463.6 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.223e-06/0.368, allocations: 0.8438 kB / 463.6 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.368, allocations: 34.7 kB / 463.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.368, allocations: 0 / 463.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001145/0.3681, allocations: 49.62 kB / 463.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.3682, allocations: 55.31 kB / 463.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.525e-05/0.3682, allocations: 104.9 kB / 463.9 MB, free: 9.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.3683, allocations: 25.7 kB / 463.9 MB, free: 9.824 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.329e-05/0.3683, allocations: 84.14 kB / 464 MB, free: 9.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.062e-05/0.3683, allocations: 4 kB / 464 MB, free: 9.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.3683, allocations: 4 kB / 464 MB, free: 9.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.04e-05/0.3684, allocations: 310.8 kB / 464.3 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.145e-05/0.3684, allocations: 8 kB / 464.3 MB, free: 9.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.336e-05/0.3684, allocations: 27.42 kB / 464.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.728e-05/0.3685, allocations: 8 kB / 464.3 MB, free: 9.363 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.3685, allocations: 4 kB / 464.3 MB, free: 9.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.429e-05/0.3685, allocations: 57.53 kB / 464.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.3686, allocations: 4 kB / 464.4 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3686, allocations: 4 kB / 464.4 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.3686, allocations: 0 / 464.4 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.218e-05/0.3686, allocations: 11.94 kB / 464.4 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.3686, allocations: 0.9375 kB / 464.4 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.153e-05/0.3687, allocations: 1.188 kB / 464.4 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.3687, allocations: 4.125 kB / 464.4 MB, free: 9.273 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 (step.counter,$CLKPRE.step.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.585e-05/0.3687, allocations: 112.8 kB / 464.5 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.627e-05/0.3688, allocations: 45.69 kB / 464.6 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.3688, allocations: 4 kB / 464.6 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3688, allocations: 4 kB / 464.6 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3689, allocations: 3.984 kB / 464.6 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.3689, allocations: 3.906 kB / 464.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.668e-05/0.3689, allocations: 138.2 kB / 464.7 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3689, allocations: 2.156 kB / 464.7 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.399e-05/0.369, allocations: 15.98 kB / 464.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.369, allocations: 0 / 464.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.369, allocations: 0 / 464.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.369, allocations: 0 / 464.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.369, allocations: 0 / 464.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.216e-05/0.3691, allocations: 81.59 kB / 464.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001557/0.3693, allocations: 465.5 kB / 465.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.3693, allocations: 81.02 kB / 465.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.3693, allocations: 0 / 465.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.884e-05/0.3694, allocations: 7.984 kB / 465.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-06/0.3694, allocations: 0.9375 kB / 465.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.3694, allocations: 4 kB / 465.4 MB, free: 8.215 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.989e-05/0.3694, allocations: 81.34 kB / 465.5 MB, free: 8.137 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007365/0.3702, allocations: 4 kB / 465.5 MB, free: 8.133 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 (step.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 8.663e-05/0.3703, allocations: 103.2 kB / 465.6 MB, free: 8.023 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.436e-05/0.3704, allocations: 19.94 kB / 465.6 MB, free: 8.004 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3704, allocations: 4 kB / 465.6 MB, free: 8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.3704, allocations: 0 / 465.6 MB, free: 8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.3706, allocations: 18.86 kB / 465.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001675/0.3707, allocations: 67.78 kB / 465.7 MB, free: 7.895 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.371, allocations: 0.7035 MB / 466.4 MB, free: 7.168 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.371, allocations: 0 / 466.4 MB, free: 7.168 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1)