Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.368/1.368, allocations: 249.5 MB / 257 MB, free: 6.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009734/0.000973, allocations: 176.8 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008824/0.0008824, allocations: 86.25 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.551e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1611, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5994/0.7606, allocations: 132.5 MB / 1.015 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.7608, allocations: 73.52 kB / 1.015 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00329/0.7641, allocations: 1.179 MB / 1.016 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7642, allocations: 0 / 1.016 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.7642, allocations: 4 kB / 1.016 GB, free: 3.844 MB / 0.6355 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.000441/0.7646, allocations: 386.6 kB / 1.016 GB, free: 3.422 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.7647, allocations: 8.031 kB / 1.016 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.502e-05/0.7647, allocations: 7.906 kB / 1.016 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.7648, allocations: 167 kB / 1.017 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.7649, allocations: 4.734 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.7649, allocations: 4 kB / 1.017 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.598e-05/0.765, allocations: 17.73 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.47e-05/0.7651, allocations: 47.81 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.7651, allocations: 3.938 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.7651, allocations: 2.625 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.7651, allocations: 4 kB / 1.017 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003493/0.7655, allocations: 246.2 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.112e-05/0.7655, allocations: 36.7 kB / 1.017 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.335e-05/0.7656, allocations: 23.17 kB / 1.017 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.7656, allocations: 0 / 1.017 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.7658, allocations: 106.4 kB / 1.017 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.7658, allocations: 0 / 1.017 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0001984/0.766, allocations: 87.66 kB / 1.017 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.766, allocations: 80.3 kB / 1.017 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.956e-05/0.7661, allocations: 96.12 kB / 1.017 GB, free: 2.418 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.7662, allocations: 29.7 kB / 1.017 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.7662, allocations: 91.34 kB / 1.017 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.7662, allocations: 15.12 kB / 1.017 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.7662, allocations: 4 kB / 1.017 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.7664, allocations: 318.2 kB / 1.018 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.863e-05/0.7664, allocations: 15.5 kB / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.147e-05/0.7664, allocations: 37.12 kB / 1.018 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/0.7665, allocations: 17.28 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.7665, allocations: 0 / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000135/0.7666, allocations: 90.23 kB / 1.018 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.7667, allocations: 43.66 kB / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.7667, allocations: 0 / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.7667, allocations: 0 / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.303e-05/0.7667, allocations: 4 kB / 1.018 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.7668, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.648e-05/0.7668, allocations: 15.89 kB / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.7669, allocations: 4.781 kB / 1.018 GB, free: 1.75 MB / 0.6355 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.23e-05/0.7669, allocations: 152.6 kB / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001358/0.7671, allocations: 100.1 kB / 1.018 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.7671, allocations: 3.906 kB / 1.018 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.7671, allocations: 8.719 kB / 1.018 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.7672, allocations: 3.938 kB / 1.018 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.7672, allocations: 0 / 1.018 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.7672, allocations: 0 / 1.018 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.7675, allocations: 341.4 kB / 1.018 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.7675, allocations: 0 / 1.018 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.218e-06/0.7675, allocations: 8 kB / 1.018 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.7675, allocations: 0 / 1.018 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.7675, allocations: 0 / 1.018 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.7675, allocations: 4 kB / 1.018 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.7675, allocations: 3.938 kB / 1.018 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.7677, allocations: 192.4 kB / 1.019 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-05/0.7678, allocations: 81.11 kB / 1.019 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.7678, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.7679, allocations: 15.98 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.768, allocations: 7.984 kB / 1.019 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.768, allocations: 7.688 kB / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.676e-05/0.768, allocations: 87.36 kB / 1.019 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7681, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002179/0.7683, allocations: 12 kB / 1.019 GB, free: 0.7148 MB / 0.6355 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.0004517/0.7687, allocations: 0.7369 MB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001486/0.7689, allocations: 103.5 kB / 1.02 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.7689, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.923e-05/0.769, allocations: 97.52 kB / 1.02 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.7692, allocations: 12.14 kB / 1.02 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003824/0.7696, allocations: 137.2 kB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.7699, allocations: 0.6885 MB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.595e-05/0.7699, allocations: 0 / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.901e-05/0.7699, allocations: 17.69 kB / 1.021 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.7699, allocations: 0 / 1.021 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02047/0.7904, allocations: 1.294 MB / 1.022 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/0.7907, allocations: 147.3 kB / 1.022 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.381/2.172, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)