Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",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.001395/0.001395, allocations: 187.7 kB / 8.135 MB, free: 2.203 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.196/1.196, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0009301/0.0009301, allocations: 100.9 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09469/0.09565, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2775, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07898/0.3565, allocations: 76.8 MB / 463.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.3567, allocations: 75.95 kB / 463.9 MB, free: 10.02 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.004648/0.3614, allocations: 1.731 MB / 465.6 MB, free: 8.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.3614, allocations: 8 kB / 465.6 MB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.786e-05/0.3615, allocations: 12.66 kB / 465.6 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.3617, allocations: 197.8 kB / 465.8 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.3617, allocations: 8 kB / 465.8 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.3617, allocations: 7.938 kB / 465.8 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.128e-05/0.3618, allocations: 25.03 kB / 465.9 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.362, allocations: 120.3 kB / 466 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.362, allocations: 0 / 466 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.362, allocations: 8 kB / 466 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3621, allocations: 0 / 466 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003577/0.3624, allocations: 286.8 kB / 466.3 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.3626, allocations: 146.4 kB / 466.4 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.648e-05/0.3627, allocations: 33.66 kB / 466.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.3627, allocations: 0 / 466.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.331e-05/0.3627, allocations: 51.5 kB / 466.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.3628, allocations: 0 / 466.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001605/0.3629, allocations: 88.28 kB / 466.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.363, allocations: 81.09 kB / 466.7 MB, free: 7.051 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.939e-05/0.3631, allocations: 125 kB / 466.8 MB, free: 6.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.3631, allocations: 25.7 kB / 466.8 MB, free: 6.891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.3631, allocations: 92.12 kB / 466.9 MB, free: 6.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.3632, allocations: 7.812 kB / 466.9 MB, free: 6.789 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.3632, allocations: 0 / 466.9 MB, free: 6.789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.778e-05/0.3633, allocations: 322.8 kB / 467.2 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.089e-05/0.3633, allocations: 20 kB / 467.2 MB, free: 6.445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.979e-05/0.3634, allocations: 49.16 kB / 467.3 MB, free: 6.379 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.169e-05/0.3634, allocations: 19.98 kB / 467.3 MB, free: 6.359 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3634, allocations: 3.938 kB / 467.3 MB, free: 6.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000135/0.3636, allocations: 91.91 kB / 467.4 MB, free: 6.262 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.3636, allocations: 4 kB / 467.4 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3636, allocations: 4 kB / 467.4 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3636, allocations: 3.984 kB / 467.4 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.865e-05/0.3637, allocations: 19.84 kB / 467.4 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.3637, allocations: 0 / 467.4 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.931e-05/0.3638, allocations: 16.14 kB / 467.4 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.3638, allocations: 11.94 kB / 467.5 MB, free: 6.203 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.211e-05/0.3639, allocations: 105 kB / 467.6 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/0.3639, allocations: 62 kB / 467.6 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.929e-05/0.364, allocations: 12.19 kB / 467.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.364, allocations: 0 / 467.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.364, allocations: 0 / 467.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.364, allocations: 0 / 467.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002444/0.3643, allocations: 303.1 kB / 467.9 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3643, allocations: 0.9375 kB / 467.9 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.774e-05/0.3644, allocations: 15.92 kB / 467.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.3644, allocations: 4 kB / 467.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.3644, allocations: 0.5625 kB / 467.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3644, allocations: 0 / 467.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3644, allocations: 1.25 kB / 467.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001543/0.3646, allocations: 202.4 kB / 468.1 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002262/0.3648, allocations: 0.557 MB / 468.7 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.323e-05/0.3649, allocations: 100.9 kB / 468.8 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.3649, allocations: 5.438 kB / 468.8 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.365, allocations: 4 kB / 468.8 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.365, allocations: 7.922 kB / 468.8 MB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/0.365, allocations: 8 kB / 468.8 MB, free: 4.695 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.674e-05/0.3651, allocations: 110.3 kB / 468.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000791/0.3659, allocations: 12 kB / 468.9 MB, free: 4.578 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001181/0.366, allocations: 95.25 kB / 469 MB, free: 4.477 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.3661, allocations: 55.92 kB / 469.1 MB, free: 4.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3661, allocations: 0 / 469.1 MB, free: 4.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.202e-05/0.3662, allocations: 16 kB / 469.1 MB, free: 4.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.3664, allocations: 19.97 kB / 469.1 MB, free: 4.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002795/0.3667, allocations: 129.2 kB / 469.3 MB, free: 4.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002737/0.367, allocations: 0.7273 MB / 470 MB, free: 3.48 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.367, allocations: 4 kB / 470 MB, free: 3.477 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1)