Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",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.0009613/0.0009613, allocations: 180.4 kB / 8.132 MB, free: 2.691 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.126/1.126, allocations: 221.4 MB / 229.9 MB, free: 7.672 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008946/0.0008946, allocations: 91.23 kB / 280.8 MB, free: 5.188 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.09538/0.0963, allocations: 55.84 MB / 336.6 MB, free: 13.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.2896, allocations: 50.39 MB / 387 MB, free: 40.38 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07326/0.3629, allocations: 75.3 MB / 462.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.3632, allocations: 76.39 kB / 462.4 MB, free: 15.12 MB / 350.1 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.001574/0.3648, allocations: 0.6873 MB / 463.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.3648, allocations: 12 kB / 463.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.3648, allocations: 6.281 kB / 463.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.365, allocations: 172.5 kB / 463.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.365, allocations: 4 kB / 463.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-06/0.365, allocations: 0 / 463.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.349e-05/0.3651, allocations: 12 kB / 463.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.3652, allocations: 86.98 kB / 463.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.3653, allocations: 0 / 463.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.3653, allocations: 0 / 463.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3653, allocations: 0 / 463.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.989e-05/0.3654, allocations: 140.4 kB / 463.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.995e-05/0.3655, allocations: 36.77 kB / 463.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.132e-05/0.3655, allocations: 16.89 kB / 463.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.3655, allocations: 4 kB / 463.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.3655, allocations: 37.67 kB / 463.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.3656, allocations: 3.781 kB / 463.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001144/0.3657, allocations: 45.69 kB / 463.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.811e-05/0.3657, allocations: 51.41 kB / 463.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.159e-05/0.3658, allocations: 103.3 kB / 463.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.3658, allocations: 25.7 kB / 463.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.275e-05/0.3658, allocations: 88.14 kB / 463.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-06/0.3658, allocations: 0 / 463.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.3658, allocations: 3.938 kB / 463.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.366, allocations: 311.4 kB / 464.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.366, allocations: 5.125 kB / 464.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.216e-05/0.366, allocations: 31.42 kB / 464.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.348e-05/0.366, allocations: 4 kB / 464.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.366, allocations: 0 / 464.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.781e-05/0.3661, allocations: 53.62 kB / 464.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.3661, allocations: 4 kB / 464.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3661, allocations: 128 / 464.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3661, allocations: 15.84 kB / 464.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.413e-05/0.3662, allocations: 0 / 464.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.3662, allocations: 4 kB / 464.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.3662, allocations: 6.562 kB / 464.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.3662, allocations: 4 kB / 464.3 MB, free: 12.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 5.118e-05/0.3663, allocations: 101 kB / 464.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.561e-05/0.3663, allocations: 49.59 kB / 464.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.349e-05/0.3664, allocations: 3.688 kB / 464.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.3664, allocations: 0 / 464.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.3664, allocations: 4 kB / 464.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3664, allocations: 0 / 464.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.13e-05/0.3665, allocations: 138.2 kB / 464.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3665, allocations: 0 / 464.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.913e-05/0.3665, allocations: 7.984 kB / 464.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3665, allocations: 0 / 464.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.3665, allocations: 4.594 kB / 464.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3665, allocations: 0 / 464.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3665, allocations: 0 / 464.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.628e-05/0.3666, allocations: 81.06 kB / 464.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001497/0.3668, allocations: 445.4 kB / 465.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.965e-05/0.3668, allocations: 85.02 kB / 465.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.3668, allocations: 1.75 kB / 465.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.559e-05/0.3668, allocations: 0 / 465.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-06/0.3669, allocations: 0 / 465.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.3669, allocations: 8 kB / 465.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.99e-05/0.3669, allocations: 83.27 kB / 465.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007544/0.3677, allocations: 4 kB / 465.3 MB, free: 11.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * 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.769e-05/0.3678, allocations: 99.19 kB / 465.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.24e-05/0.3678, allocations: 16 kB / 465.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.3678, allocations: 0 / 465.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.9e-07/0.3678, allocations: 0 / 465.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.368, allocations: 29.61 kB / 465.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001393/0.3681, allocations: 63.8 kB / 465.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.3684, allocations: 0.703 MB / 466.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3684, allocations: 0 / 466.2 MB, free: 10.93 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1)