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: "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",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/BuildingSystems 2.0.0-master/package.mo): time 0.8488/0.8488, allocations: 141.8 MB / 149.1 MB, free: 1.492 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.001187/0.001186, allocations: 189.2 kB / 182 MB, free: 0.8516 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.424/1.424, allocations: 221.4 MB / 436 MB, free: 5.516 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.0009732/0.0009733, allocations: 100.6 kB / 0.507 GB, free: 2.168 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001876/0.001876, allocations: 273.5 kB / 0.5885 GB, free: 47.32 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4059/0.4078, allocations: 89.61 MB / 0.676 GB, free: 59.61 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.5614, allocations: 82.78 MB / 0.7568 GB, free: 0.6914 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.7014, allocations: 108.4 MB / 0.8627 GB, free: 4.141 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.7016, allocations: 77.98 kB / 0.8627 GB, free: 4.066 MB / 0.5419 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.003754/0.7054, allocations: 1.292 MB / 0.864 GB, free: 2.715 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.7055, allocations: 15.94 kB / 0.864 GB, free: 2.699 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.081e-05/0.7055, allocations: 0 / 0.864 GB, free: 2.699 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.7057, allocations: 174.9 kB / 0.8642 GB, free: 2.488 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.7057, allocations: 4 kB / 0.8642 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.7057, allocations: 0 / 0.8642 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.137e-05/0.7058, allocations: 15.98 kB / 0.8642 GB, free: 2.469 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.802e-05/0.7059, allocations: 53.61 kB / 0.8643 GB, free: 2.41 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.7059, allocations: 0 / 0.8643 GB, free: 2.41 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.7059, allocations: 0 / 0.8643 GB, free: 2.41 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.706, allocations: 8 kB / 0.8643 GB, free: 2.402 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004398/0.7064, allocations: 241.4 kB / 0.8645 GB, free: 2.129 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.459e-05/0.7065, allocations: 34.58 kB / 0.8645 GB, free: 2.086 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.085e-05/0.7066, allocations: 20.98 kB / 0.8645 GB, free: 2.062 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.7066, allocations: 7.984 kB / 0.8646 GB, free: 2.055 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001135/0.7067, allocations: 100.9 kB / 0.8646 GB, free: 1.938 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.7067, allocations: 0 / 0.8646 GB, free: 1.938 MB / 0.5419 GB Notification: Performance of matching and sorting (n=9): time 0.0001905/0.7069, allocations: 65.69 kB / 0.8647 GB, free: 1.867 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.707, allocations: 81.11 kB / 0.8648 GB, free: 1.77 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.137e-05/0.707, allocations: 104.9 kB / 0.8649 GB, free: 1.66 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.7071, allocations: 29.69 kB / 0.8649 GB, free: 1.625 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.156e-05/0.7071, allocations: 80.14 kB / 0.865 GB, free: 1.543 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.7071, allocations: 19.88 kB / 0.865 GB, free: 1.523 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.401e-06/0.7072, allocations: 4 kB / 0.865 GB, free: 1.52 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.7073, allocations: 326.8 kB / 0.8653 GB, free: 1.191 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.065e-05/0.7073, allocations: 12 kB / 0.8653 GB, free: 1.18 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.145e-05/0.7073, allocations: 26.58 kB / 0.8654 GB, free: 1.145 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.478e-05/0.7074, allocations: 19.98 kB / 0.8654 GB, free: 1.125 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.7074, allocations: 0 / 0.8654 GB, free: 1.125 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001213/0.7075, allocations: 81.53 kB / 0.8655 GB, free: 1.039 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.7075, allocations: 8 kB / 0.8655 GB, free: 1.031 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.7075, allocations: 0 / 0.8655 GB, free: 1.031 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.7076, allocations: 0 / 0.8655 GB, free: 1.031 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.731e-05/0.7076, allocations: 4 kB / 0.8655 GB, free: 1.027 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.7076, allocations: 3.938 kB / 0.8655 GB, free: 1.023 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.917e-05/0.7077, allocations: 15.89 kB / 0.8655 GB, free: 1.008 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.7077, allocations: 4.156 kB / 0.8655 GB, free: 1.004 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 0.000105/0.7078, allocations: 151.2 kB / 0.8656 GB, free: 0.8438 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.7078, allocations: 7.906 kB / 0.8656 GB, free: 0.8359 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.7079, allocations: 4.375 kB / 0.8657 GB, free: 0.832 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.7079, allocations: 0 / 0.8657 GB, free: 0.832 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.7079, allocations: 4 kB / 0.8657 GB, free: 0.8281 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.7079, allocations: 3.984 kB / 0.8657 GB, free: 0.8242 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.7082, allocations: 323 kB / 0.866 GB, free: 476 kB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.7082, allocations: 0 / 0.866 GB, free: 476 kB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-06/0.7083, allocations: 4 kB / 0.866 GB, free: 472 kB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.7083, allocations: 4 kB / 0.866 GB, free: 468 kB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.7083, allocations: 0 / 0.866 GB, free: 468 kB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.7083, allocations: 0 / 0.866 GB, free: 468 kB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.7083, allocations: 3.984 kB / 0.866 GB, free: 464 kB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001584/0.7084, allocations: 175.4 kB / 0.8661 GB, free: 272 kB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2611/0.9696, allocations: 0.5467 MB / 0.8667 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.916e-05/0.9697, allocations: 80.7 kB / 0.8668 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.9698, allocations: 3.844 kB / 0.8668 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.9699, allocations: 14.2 kB / 0.8668 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.97, allocations: 6.297 kB / 0.8668 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.97, allocations: 7.312 kB / 0.8668 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of sort global known variables: time 5.025e-05/0.9701, allocations: 93.64 kB / 0.8669 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0009228/0.971, allocations: 10.69 kB / 0.8669 GB, free: 168.3 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 0.0001155/0.9712, allocations: 107 kB / 0.867 GB, free: 168.2 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001578/0.9713, allocations: 72.92 kB / 0.8671 GB, free: 168.2 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.9713, allocations: 0 / 0.8671 GB, free: 168.2 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 6.34e-05/0.9714, allocations: 64.48 kB / 0.8671 GB, free: 168.1 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.9717, allocations: 13.91 kB / 0.8671 GB, free: 168.1 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003155/0.972, allocations: 97.83 kB / 0.8672 GB, free: 168.1 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.9722, allocations: 0.7013 MB / 0.8679 GB, free: 167.4 MB / 0.5419 GB Notification: Performance of SimCode: time 1.072e-06/0.9722, allocations: 0 / 0.8679 GB, free: 167.4 MB / 0.5419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)