Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",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.001035/0.001035, allocations: 182.4 kB / 8.137 MB, free: 2.188 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.124/1.124, allocations: 221.4 MB / 229.9 MB, free: 3.34 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.001089/0.001089, allocations: 98.31 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09519/0.09632, allocations: 55.81 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.2843, allocations: 50.39 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07743/0.3617, allocations: 76.52 MB / 463.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.362, allocations: 79.94 kB / 463.6 MB, free: 10.18 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.004447/0.3665, allocations: 1.645 MB / 465.2 MB, free: 8.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.3665, allocations: 8 kB / 465.3 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.3666, allocations: 11.81 kB / 465.3 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.3668, allocations: 203.3 kB / 465.5 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.3668, allocations: 0 / 465.5 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.3668, allocations: 4 kB / 465.5 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.9e-05/0.3669, allocations: 16 kB / 465.5 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.3671, allocations: 118.8 kB / 465.6 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3671, allocations: 3.938 kB / 465.6 MB, free: 8.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.3671, allocations: 5.203 kB / 465.6 MB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.3671, allocations: 0 / 465.6 MB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003711/0.3675, allocations: 344.4 kB / 465.9 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.709e-05/0.3676, allocations: 90.44 kB / 466 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.472e-05/0.3677, allocations: 35.5 kB / 466.1 MB, free: 7.535 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.3677, allocations: 4 kB / 466.1 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.3677, allocations: 42.41 kB / 466.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.3677, allocations: 0 / 466.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001887/0.3679, allocations: 73.52 kB / 466.2 MB, free: 7.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.368, allocations: 128.5 kB / 466.3 MB, free: 7.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.497e-05/0.3681, allocations: 128.9 kB / 466.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.3681, allocations: 29.7 kB / 466.5 MB, free: 7.082 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.241e-05/0.3681, allocations: 88.31 kB / 466.6 MB, free: 6.992 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.3682, allocations: 8.562 kB / 466.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.3682, allocations: 0 / 466.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.301e-05/0.3683, allocations: 314.8 kB / 466.9 MB, free: 6.668 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.094e-05/0.3683, allocations: 11.98 kB / 466.9 MB, free: 6.656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.912e-05/0.3683, allocations: 40.23 kB / 466.9 MB, free: 6.602 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.74e-05/0.3683, allocations: 16 kB / 466.9 MB, free: 6.586 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3684, allocations: 0 / 466.9 MB, free: 6.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.82e-05/0.3685, allocations: 63.03 kB / 467 MB, free: 6.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.3685, allocations: 8 kB / 467 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3685, allocations: 4.156 kB / 467 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.3685, allocations: 0 / 467 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.98e-05/0.3686, allocations: 21.17 kB / 467 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.3686, allocations: 4 kB / 467 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.321e-05/0.3687, allocations: 11.84 kB / 467 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.3687, allocations: 0 / 467 MB, free: 6.473 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.739e-05/0.3688, allocations: 109 kB / 467.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.816e-05/0.3689, allocations: 53.55 kB / 467.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.679e-05/0.3689, allocations: 15.73 kB / 467.2 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3689, allocations: 4 kB / 467.2 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3689, allocations: 3.906 kB / 467.2 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3689, allocations: 0 / 467.2 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.3691, allocations: 150.2 kB / 467.4 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3691, allocations: 5.125 kB / 467.4 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.292e-05/0.3692, allocations: 12.83 kB / 467.4 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3692, allocations: 4 kB / 467.4 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.3693, allocations: 4.062 kB / 467.4 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3693, allocations: 4.625 kB / 467.4 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3693, allocations: 3.906 kB / 467.4 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001848/0.3695, allocations: 295.5 kB / 467.7 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002406/0.3697, allocations: 0.6503 MB / 468.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.3698, allocations: 93 kB / 468.4 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.3698, allocations: 9.234 kB / 468.4 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.3699, allocations: 3.938 kB / 468.4 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.37, allocations: 7.938 kB / 468.5 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.37, allocations: 4 kB / 468.5 MB, free: 4.902 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.718e-05/0.37, allocations: 103.8 kB / 468.6 MB, free: 4.801 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008658/0.3709, allocations: 15.91 kB / 468.6 MB, free: 4.785 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.193e-05/0.371, allocations: 103.2 kB / 468.7 MB, free: 4.676 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.48e-05/0.3711, allocations: 27.88 kB / 468.7 MB, free: 4.648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3711, allocations: 0 / 468.7 MB, free: 4.648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.848e-05/0.3711, allocations: 8 kB / 468.7 MB, free: 4.641 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.3714, allocations: 27.56 kB / 468.7 MB, free: 4.617 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/0.3717, allocations: 130 kB / 468.9 MB, free: 4.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.372, allocations: 0.7114 MB / 469.6 MB, free: 3.719 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.372, allocations: 0 / 469.6 MB, free: 3.719 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1)