Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7008/0.7008, allocations: 141.8 MB / 149.1 MB, free: 1.91 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009894/0.0009894, allocations: 176.3 kB / 182 MB, free: 13.95 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.193/1.193, allocations: 221.3 MB / 436 MB, free: 6.848 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009049/0.0009049, allocations: 103 kB / 0.507 GB, free: 24.54 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001702/0.001702, allocations: 274.6 kB / 0.5885 GB, free: 10.14 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.981e-06, allocations: 0 / 0.6759 GB, free: 0.5078 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3377, allocations: 82.75 MB / 0.7567 GB, free: 110.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.4501, allocations: 108.4 MB / 0.8626 GB, free: 2.211 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.4503, allocations: 72.55 kB / 0.8627 GB, free: 2.141 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.003088/0.4534, allocations: 0.9201 MB / 0.8636 GB, free: 1.238 MB / 0.5263 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.4535, allocations: 0 / 0.8636 GB, free: 1.238 MB / 0.5263 GB 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.0003341/0.4538, allocations: 379.2 kB / 0.8639 GB, free: 0.8203 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.4538, allocations: 9.031 kB / 0.8639 GB, free: 0.8125 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.4539, allocations: 9 kB / 0.8639 GB, free: 0.8047 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.376e-05/0.454, allocations: 167 kB / 0.8641 GB, free: 0.6016 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.454, allocations: 0.7188 kB / 0.8641 GB, free: 0.6016 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.454, allocations: 4 kB / 0.8641 GB, free: 0.5977 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.811e-05/0.4541, allocations: 16.48 kB / 0.8641 GB, free: 0.582 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.925e-05/0.4542, allocations: 55.17 kB / 0.8642 GB, free: 0.5234 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.4542, allocations: 0 / 0.8642 GB, free: 0.5234 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.4542, allocations: 0.7188 kB / 0.8642 GB, free: 0.5234 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.4542, allocations: 0 / 0.8642 GB, free: 0.5234 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002551/0.4545, allocations: 251.5 kB / 0.8644 GB, free: 248 kB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 6.213e-05/0.4545, allocations: 34.58 kB / 0.8644 GB, free: 204 kB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.056e-05/0.4546, allocations: 17.52 kB / 0.8645 GB, free: 184 kB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.4546, allocations: 0.6875 kB / 0.8645 GB, free: 184 kB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.077e-05/0.4547, allocations: 95.56 kB / 0.8645 GB, free: 72 kB / 0.5263 GB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.4547, allocations: 0 / 0.8645 GB, free: 72 kB / 0.5263 GB Notification: Performance of matching and sorting (n=9): time 0.0002132/0.4549, allocations: 78.23 kB / 0.8646 GB, free: 15.98 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.455, allocations: 77.67 kB / 0.8647 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.084e-05/0.4551, allocations: 102.2 kB / 0.8648 GB, free: 15.78 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.4551, allocations: 30.23 kB / 0.8648 GB, free: 15.75 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.384e-05/0.4551, allocations: 88.8 kB / 0.8649 GB, free: 15.66 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.4552, allocations: 15.88 kB / 0.8649 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.4552, allocations: 2.406 kB / 0.8649 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4553, allocations: 322.8 kB / 0.8652 GB, free: 15.32 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.791e-05/0.4553, allocations: 12.53 kB / 0.8652 GB, free: 15.31 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.408e-05/0.4554, allocations: 40.08 kB / 0.8653 GB, free: 15.26 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.481e-05/0.4554, allocations: 16.52 kB / 0.8653 GB, free: 15.25 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4554, allocations: 1.031 kB / 0.8653 GB, free: 15.25 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001268/0.4555, allocations: 82.39 kB / 0.8654 GB, free: 15.16 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.4556, allocations: 4.75 kB / 0.8654 GB, free: 15.16 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.4556, allocations: 0 / 0.8654 GB, free: 15.16 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.4556, allocations: 4.531 kB / 0.8654 GB, free: 15.15 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.012e-05/0.4556, allocations: 0.6562 kB / 0.8654 GB, free: 15.15 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4556, allocations: 4 kB / 0.8654 GB, free: 15.15 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.375e-05/0.4557, allocations: 16.98 kB / 0.8654 GB, free: 15.13 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.4557, allocations: 4.812 kB / 0.8654 GB, free: 15.13 MB / 0.5419 GB 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 9.458e-05/0.4558, allocations: 132.6 kB / 0.8655 GB, free: 14.99 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.4559, allocations: 8.469 kB / 0.8655 GB, free: 14.98 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.233e-05/0.4559, allocations: 16.36 kB / 0.8656 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.4559, allocations: 0 / 0.8656 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4559, allocations: 1.312 kB / 0.8656 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.4559, allocations: 7.922 kB / 0.8656 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.4562, allocations: 328.4 kB / 0.8659 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4563, allocations: 0 / 0.8659 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.047e-06/0.4563, allocations: 3.938 kB / 0.8659 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.4563, allocations: 0 / 0.8659 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.4563, allocations: 5.188 kB / 0.8659 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4563, allocations: 64 / 0.8659 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4563, allocations: 10.02 kB / 0.8659 GB, free: 14.58 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001401/0.4565, allocations: 169 kB / 0.8661 GB, free: 14.4 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.4565, allocations: 81.02 kB / 0.8661 GB, free: 14.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.4565, allocations: 13.2 kB / 0.8662 GB, free: 14.29 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.4567, allocations: 12.06 kB / 0.8662 GB, free: 14.28 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.4567, allocations: 11.92 kB / 0.8662 GB, free: 14.27 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.4567, allocations: 4 kB / 0.8662 GB, free: 14.26 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.98e-05/0.4568, allocations: 83.28 kB / 0.8663 GB, free: 14.18 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.000228/0.457, allocations: 19.92 kB / 0.8663 GB, free: 14.16 MB / 0.5419 GB 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.684e-05/0.4571, allocations: 95.25 kB / 0.8664 GB, free: 14.06 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.000136/0.4572, allocations: 81.7 kB / 0.8664 GB, free: 13.97 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4573, allocations: 0 / 0.8664 GB, free: 13.97 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 6.587e-05/0.4573, allocations: 57.7 kB / 0.8665 GB, free: 13.91 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.4576, allocations: 16.44 kB / 0.8665 GB, free: 13.89 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002561/0.4578, allocations: 87.77 kB / 0.8666 GB, free: 13.79 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.4581, allocations: 0.7036 MB / 0.8673 GB, free: 13.05 MB / 0.5419 GB Notification: Performance of SimCode: time 3.41e-07/0.4581, allocations: 0 / 0.8673 GB, free: 13.05 MB / 0.5419 GB Notification: Performance of Templates: time 0.002609/0.4607, allocations: 0.785 MB / 0.8681 GB, free: 12.29 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)