Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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: translateModel(IBPSA.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay") translateModel(IBPSA.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay") [: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.001297/0.001297, allocations: 184.5 kB / 7.804 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4323/0.4323, allocations: 90.85 MB / 99.08 MB, free: 14.91 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 221.4 MB / 342.8 MB, free: 5.176 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009658, allocations: 95.02 kB / 415.5 MB, free: 6.402 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 6.361e-06/6.382e-06, allocations: 0 / 493.9 MB, free: 8.051 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3362, allocations: 72.29 MB / 0.5529 GB, free: 73.3 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.4399, allocations: 101.3 MB / 0.6518 GB, free: 8.734 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.4402, allocations: 76.52 kB / 0.6519 GB, free: 8.66 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.003071/0.4433, allocations: 0.9158 MB / 0.6527 GB, free: 7.77 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.79e-06/0.4433, allocations: 0 / 0.6527 GB, free: 7.77 MB / 474.7 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.0004187/0.4437, allocations: 383.6 kB / 0.6531 GB, free: 7.348 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.4438, allocations: 13.78 kB / 0.6531 GB, free: 7.336 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.4438, allocations: 7.906 kB / 0.6531 GB, free: 7.328 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.4439, allocations: 163.1 kB / 0.6533 GB, free: 7.129 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.444, allocations: 0 / 0.6533 GB, free: 7.129 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.444, allocations: 11.84 kB / 0.6533 GB, free: 7.117 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.032e-05/0.4441, allocations: 16.62 kB / 0.6533 GB, free: 7.102 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.169e-05/0.4441, allocations: 50.08 kB / 0.6534 GB, free: 7.051 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.4442, allocations: 0 / 0.6534 GB, free: 7.051 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.4442, allocations: 4.766 kB / 0.6534 GB, free: 7.047 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4442, allocations: 0 / 0.6534 GB, free: 7.047 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003172/0.4445, allocations: 247.2 kB / 0.6536 GB, free: 6.77 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.166e-05/0.4446, allocations: 39.06 kB / 0.6536 GB, free: 6.723 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.32e-05/0.4446, allocations: 21.89 kB / 0.6537 GB, free: 6.699 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.4447, allocations: 0 / 0.6537 GB, free: 6.699 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.797e-05/0.4448, allocations: 91.86 kB / 0.6538 GB, free: 6.594 MB / 474.7 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.4448, allocations: 0.7812 kB / 0.6538 GB, free: 6.594 MB / 474.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001737/0.445, allocations: 77.53 kB / 0.6538 GB, free: 6.512 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.445, allocations: 82.16 kB / 0.6539 GB, free: 6.414 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.504e-05/0.4451, allocations: 101 kB / 0.654 GB, free: 6.309 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.4451, allocations: 29.27 kB / 0.654 GB, free: 6.277 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.236e-05/0.4451, allocations: 84.14 kB / 0.6541 GB, free: 6.191 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.4452, allocations: 20.42 kB / 0.6541 GB, free: 6.172 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.4452, allocations: 0.5938 kB / 0.6541 GB, free: 6.172 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.4453, allocations: 320.2 kB / 0.6544 GB, free: 5.852 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.757e-05/0.4453, allocations: 12 kB / 0.6544 GB, free: 5.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.909e-05/0.4454, allocations: 35.16 kB / 0.6545 GB, free: 5.797 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.399e-05/0.4454, allocations: 16.81 kB / 0.6545 GB, free: 5.781 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.4454, allocations: 1.031 kB / 0.6545 GB, free: 5.781 MB / 474.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001136/0.4455, allocations: 83.56 kB / 0.6546 GB, free: 5.695 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.4455, allocations: 4.844 kB / 0.6546 GB, free: 5.691 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.4455, allocations: 0 / 0.6546 GB, free: 5.691 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.4456, allocations: 4.844 kB / 0.6546 GB, free: 5.688 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.354e-05/0.4456, allocations: 7.984 kB / 0.6546 GB, free: 5.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.4456, allocations: 11.06 kB / 0.6546 GB, free: 5.672 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.548e-05/0.4457, allocations: 7.938 kB / 0.6546 GB, free: 5.664 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.4457, allocations: 4 kB / 0.6546 GB, free: 5.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 8.81e-05/0.4458, allocations: 144.1 kB / 0.6548 GB, free: 5.508 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.548e-05/0.4458, allocations: 7.906 kB / 0.6548 GB, free: 5.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.4459, allocations: 4.938 kB / 0.6548 GB, free: 5.496 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.4459, allocations: 0.5 kB / 0.6548 GB, free: 5.496 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4459, allocations: 0.5312 kB / 0.6548 GB, free: 5.496 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4459, allocations: 3.906 kB / 0.6548 GB, free: 5.492 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.4462, allocations: 331.6 kB / 0.6551 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4462, allocations: 0 / 0.6551 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.804e-06/0.4462, allocations: 1.438 kB / 0.6551 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4462, allocations: 0.5938 kB / 0.6551 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.4462, allocations: 8.531 kB / 0.6551 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4462, allocations: 0 / 0.6551 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4462, allocations: 1.312 kB / 0.6551 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001555/0.4464, allocations: 180.1 kB / 0.6553 GB, free: 4.926 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.369e-05/0.4465, allocations: 89.02 kB / 0.6554 GB, free: 4.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.4465, allocations: 0.6562 kB / 0.6554 GB, free: 4.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.4466, allocations: 13.33 kB / 0.6554 GB, free: 4.809 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.4467, allocations: 8.609 kB / 0.6554 GB, free: 4.801 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.4467, allocations: 6.156 kB / 0.6554 GB, free: 4.797 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.868e-05/0.4467, allocations: 84.12 kB / 0.6555 GB, free: 4.715 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00023/0.447, allocations: 12 kB / 0.6555 GB, free: 4.703 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 9.649e-05/0.4471, allocations: 98.11 kB / 0.6556 GB, free: 4.602 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.4472, allocations: 81.75 kB / 0.6556 GB, free: 4.516 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.4472, allocations: 4.062 kB / 0.6556 GB, free: 4.512 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 6.206e-05/0.4473, allocations: 61.64 kB / 0.6557 GB, free: 4.445 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.4475, allocations: 18.69 kB / 0.6557 GB, free: 4.434 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002447/0.4477, allocations: 91.64 kB / 0.6558 GB, free: 4.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.4481, allocations: 0.6997 MB / 0.6565 GB, free: 3.594 MB / 474.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4481, allocations: 0 / 0.6565 GB, free: 3.594 MB / 474.7 MB Notification: Performance of Templates: time 0.002603/0.4507, allocations: 0.7694 MB / 0.6572 GB, free: 2.855 MB / 474.7 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & ./IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)