Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.00116/0.00116, allocations: 179.3 kB / 8.133 MB, free: 2.215 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.104/1.104, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.001025/0.001025, allocations: 94.69 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09079/0.09185, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.2706, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08129/0.352, allocations: 80.41 MB / 467.4 MB, free: 6.355 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.3522, allocations: 87.88 kB / 467.5 MB, free: 6.27 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01596/0.3682, allocations: 6.096 MB / 473.6 MB, free: 172 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3682, allocations: 8 kB / 473.6 MB, free: 164 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.184e-05/0.3683, allocations: 23.72 kB / 473.6 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.3687, allocations: 261.7 kB / 473.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3687, allocations: 4 kB / 473.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.3688, allocations: 4 kB / 473.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001114/0.3689, allocations: 43.89 kB / 473.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.3691, allocations: 151 kB / 474.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3692, allocations: 1.969 kB / 474.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.3692, allocations: 0.625 kB / 474.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3692, allocations: 0 / 474.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004694/0.3697, allocations: 435.1 kB / 474.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.3698, allocations: 123 kB / 474.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.347e-05/0.3699, allocations: 47.56 kB / 474.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.3699, allocations: 11.98 kB / 474.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001024/0.37, allocations: 89.62 kB / 474.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.37, allocations: 0 / 474.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002212/0.3703, allocations: 109.3 kB / 474.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.3703, allocations: 166.1 kB / 475 MB, free: 14.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.3706, allocations: 228.1 kB / 475.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.3706, allocations: 37.73 kB / 475.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.533e-05/0.3707, allocations: 96.31 kB / 475.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.3707, allocations: 23.73 kB / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.3707, allocations: 0 / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.3708, allocations: 326.8 kB / 475.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.098e-05/0.3708, allocations: 20 kB / 475.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-05/0.3709, allocations: 78.86 kB / 475.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.317e-05/0.371, allocations: 24.55 kB / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.371, allocations: 0 / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001718/0.3712, allocations: 118.9 kB / 476 MB, free: 13.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.3712, allocations: 7.906 kB / 476 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3712, allocations: 4 kB / 476 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.3712, allocations: 0 / 476 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.079e-05/0.3713, allocations: 15.94 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3713, allocations: 10.56 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.122e-05/0.3714, allocations: 4.938 kB / 476 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.3714, allocations: 8.125 kB / 476 MB, free: 13.46 MB / 362.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: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.131e-05/0.3715, allocations: 117 kB / 476.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-05/0.3716, allocations: 69.34 kB / 476.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.3718, allocations: 95.47 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.3718, allocations: 0 / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3718, allocations: 4 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3718, allocations: 3.984 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.372, allocations: 210 kB / 476.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.372, allocations: 4 kB / 476.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.488e-05/0.372, allocations: 11.88 kB / 476.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3721, allocations: 12.05 kB / 476.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.3721, allocations: 0 / 476.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3721, allocations: 0 / 476.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3721, allocations: 7.984 kB / 476.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000191/0.3723, allocations: 196.3 kB / 476.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002794/0.3726, allocations: 0.5606 MB / 477.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.814e-05/0.3727, allocations: 116.8 kB / 477.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.3727, allocations: 11.98 kB / 477.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.561e-05/0.3728, allocations: 4 kB / 477.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.091e-05/0.3728, allocations: 7.984 kB / 477.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.3729, allocations: 4 kB / 477.4 MB, free: 11.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001613/0.373, allocations: 188.5 kB / 477.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008149/0.3738, allocations: 47.78 kB / 477.7 MB, free: 11.64 MB / 362.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: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006005/0.3744, allocations: 322 kB / 478 MB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.3746, allocations: 71.92 kB / 478.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3746, allocations: 320 / 478.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.589e-05/0.3747, allocations: 35.94 kB / 478.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.375, allocations: 52.44 kB / 478.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000454/0.3755, allocations: 242.2 kB / 478.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.3758, allocations: 0.7669 MB / 479.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3758, allocations: 0 / 479.2 MB, free: 10.18 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1)