Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",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.0009389/0.0009389, allocations: 184.9 kB / 8.13 MB, free: 2.074 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.023 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.0008866/0.0008866, allocations: 99.08 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09543/0.09635, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2972, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07826/0.3755, allocations: 76.51 MB / 463.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.3757, allocations: 79.95 kB / 463.6 MB, free: 10.21 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.004422/0.3802, allocations: 1.597 MB / 465.2 MB, free: 8.594 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.3802, allocations: 8 kB / 465.2 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.3803, allocations: 7.906 kB / 465.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.3805, allocations: 202.4 kB / 465.4 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-06/0.3805, allocations: 3.938 kB / 465.4 MB, free: 8.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.3805, allocations: 4.844 kB / 465.4 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.703e-05/0.3806, allocations: 20 kB / 465.4 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.3808, allocations: 121.9 kB / 465.5 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.3808, allocations: 1.5 kB / 465.5 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.3808, allocations: 0 / 465.5 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3808, allocations: 4 kB / 465.5 MB, free: 8.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003745/0.3812, allocations: 338.4 kB / 465.9 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.3814, allocations: 152.9 kB / 466 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.737e-05/0.3815, allocations: 26.73 kB / 466.1 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.3815, allocations: 7.984 kB / 466.1 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.3815, allocations: 30.56 kB / 466.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.472e-06/0.3815, allocations: 0 / 466.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002033/0.3817, allocations: 69.53 kB / 466.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.3818, allocations: 110.7 kB / 466.3 MB, free: 7.312 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.3819, allocations: 125.3 kB / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.3819, allocations: 25.7 kB / 466.4 MB, free: 7.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.382, allocations: 84.27 kB / 466.5 MB, free: 7.059 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.382, allocations: 11.91 kB / 466.5 MB, free: 7.047 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.382, allocations: 0 / 466.5 MB, free: 7.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3821, allocations: 316.5 kB / 466.8 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.476e-05/0.3822, allocations: 16.06 kB / 466.8 MB, free: 6.715 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.385e-05/0.3822, allocations: 36.23 kB / 466.9 MB, free: 6.664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.239e-05/0.3823, allocations: 15.98 kB / 466.9 MB, free: 6.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3823, allocations: 0 / 466.9 MB, free: 6.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001105/0.3824, allocations: 73.53 kB / 467 MB, free: 6.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.3824, allocations: 4 kB / 467 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3824, allocations: 4 kB / 467 MB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.3824, allocations: 3.938 kB / 467 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.605e-05/0.3825, allocations: 15.92 kB / 467 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3825, allocations: 6.312 kB / 467 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.245e-05/0.3826, allocations: 4 kB / 467 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.3826, allocations: 8.125 kB / 467 MB, free: 6.527 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: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.619e-05/0.3827, allocations: 104.9 kB / 467.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.361e-05/0.3828, allocations: 50.81 kB / 467.2 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.81e-05/0.3828, allocations: 12.27 kB / 467.2 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.3828, allocations: 7.984 kB / 467.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3828, allocations: 0 / 467.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.3828, allocations: 3.984 kB / 467.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.383, allocations: 158.1 kB / 467.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.383, allocations: 0 / 467.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.559e-05/0.3831, allocations: 15.98 kB / 467.3 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.3831, allocations: 0 / 467.3 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.3831, allocations: 4 kB / 467.4 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3831, allocations: 0 / 467.4 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3831, allocations: 0 / 467.4 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001739/0.3833, allocations: 268.9 kB / 467.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002719/0.3836, allocations: 0.6437 MB / 468.3 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.54e-05/0.3837, allocations: 93 kB / 468.3 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.3837, allocations: 0 / 468.3 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.3838, allocations: 8 kB / 468.4 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.743e-05/0.3839, allocations: 3.984 kB / 468.4 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.3839, allocations: 4 kB / 468.4 MB, free: 5.031 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.003e-05/0.3839, allocations: 106.4 kB / 468.5 MB, free: 4.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008177/0.3848, allocations: 8 kB / 468.5 MB, free: 4.922 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * 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 0.0001087/0.3849, allocations: 103.2 kB / 468.6 MB, free: 4.809 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.499e-05/0.385, allocations: 31.94 kB / 468.6 MB, free: 4.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.385, allocations: 0 / 468.6 MB, free: 4.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.027e-05/0.385, allocations: 11.92 kB / 468.6 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.3853, allocations: 19.39 kB / 468.6 MB, free: 4.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.3855, allocations: 118.5 kB / 468.8 MB, free: 4.605 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.3859, allocations: 0.7227 MB / 469.5 MB, free: 3.859 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3859, allocations: 0 / 469.5 MB, free: 3.859 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1)