Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 81.86 kB / 20.68 MB, free: 3.82 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 185 kB / 24.09 MB, free: 424 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.975/0.975, allocations: 177.1 MB / 204.5 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.832/1.832, allocations: 377.9 MB / 0.624 GB, free: 8.418 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 0.8119 GB, free: 388 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.693e-05, allocations: 2.969 kB / 0.8119 GB, free: 384 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001745/0.001762, allocations: 1.472 MB / 0.8134 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0005747/0.002337, allocations: 467.4 kB / 0.8138 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.142e-05/0.002378, allocations: 0 / 0.8138 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.002401, allocations: 4.594 kB / 0.8138 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 7.556e-05/0.002477, allocations: 19.84 kB / 0.8139 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001232/0.0026, allocations: 16.73 kB / 0.8139 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 8.702e-05/0.002687, allocations: 55.73 kB / 0.8139 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 6.941e-05/0.002756, allocations: 13.34 kB / 0.8139 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 7.143e-05/0.002828, allocations: 23.98 kB / 0.814 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 5.48e-05/0.002883, allocations: 15.92 kB / 0.814 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.0029, allocations: 4.875 kB / 0.814 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 8.145e-06/0.002908, allocations: 4 kB / 0.814 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.002932, allocations: 11.98 kB / 0.814 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 2.625e-05/0.002958, allocations: 12.91 kB / 0.814 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 8.442e-05/0.003042, allocations: 31.95 kB / 0.814 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003045, allocations: 5.625 kB / 0.814 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of FrontEnd: time 5.61e-07/0.003045, allocations: 0 / 0.814 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.444e-06/0.003048, allocations: 0 / 0.814 GB, free: 14.24 MB / 0.7292 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.0003854/0.003433, allocations: 419.7 kB / 0.8144 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.003465, allocations: 8.031 kB / 0.8144 GB, free: 13.78 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.746e-05/0.003493, allocations: 8.891 kB / 0.8145 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.043e-05/0.003563, allocations: 120.5 kB / 0.8146 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.003575, allocations: 9.75 kB / 0.8146 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-06/0.003581, allocations: 384 / 0.8146 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.989e-05/0.003661, allocations: 67.95 kB / 0.8146 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.003668, allocations: 1.938 kB / 0.8146 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.003675, allocations: 4.375 kB / 0.8147 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.003681, allocations: 3.938 kB / 0.8147 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.872e-05/0.003709, allocations: 37.69 kB / 0.8147 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002334/0.003943, allocations: 252.4 kB / 0.8149 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 5.463e-05/0.003997, allocations: 69.89 kB / 0.815 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.332e-05/0.004021, allocations: 41.38 kB / 0.815 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.004036, allocations: 5.094 kB / 0.815 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.767e-05/0.004134, allocations: 120.6 kB / 0.8152 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.004135, allocations: 3.938 kB / 0.8152 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9): time 0.0001947/0.00433, allocations: 195.5 kB / 0.8153 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.004366, allocations: 85.05 kB / 0.8154 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.953e-05/0.004435, allocations: 172.2 kB / 0.8156 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.004447, allocations: 25.7 kB / 0.8156 GB, free: 12.4 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.076e-05/0.004487, allocations: 130.9 kB / 0.8157 GB, free: 12.27 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.004504, allocations: 27.77 kB / 0.8158 GB, free: 12.24 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.004536, allocations: 35.36 kB / 0.8158 GB, free: 12.2 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.004636, allocations: 0.4884 MB / 0.8163 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.128e-05/0.004658, allocations: 34.23 kB / 0.8163 GB, free: 11.66 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.004692, allocations: 69.47 kB / 0.8164 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.059e-05/0.004753, allocations: 110.9 kB / 0.8165 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.004755, allocations: 1.594 kB / 0.8165 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11) (initialization): time 9.932e-05/0.004854, allocations: 141 kB / 0.8166 GB, free: 11.28 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.004879, allocations: 45.56 kB / 0.8167 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.004883, allocations: 0.625 kB / 0.8167 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.004894, allocations: 0.875 kB / 0.8167 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.01e-05/0.004924, allocations: 4 kB / 0.8167 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.347e-06/0.004927, allocations: 4 kB / 0.8167 GB, free: 11.22 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.223e-05/0.00496, allocations: 8.453 kB / 0.8167 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.004967, allocations: 8.641 kB / 0.8167 GB, free: 11.21 MB / 0.7292 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 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/0.005041, allocations: 190.8 kB / 0.8169 GB, free: 11 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.005054, allocations: 12 kB / 0.8169 GB, free: 10.99 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.005075, allocations: 9.188 kB / 0.8169 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.005077, allocations: 4 kB / 0.8169 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.005078, allocations: 0.9375 kB / 0.8169 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.005082, allocations: 3.984 kB / 0.8169 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.005332, allocations: 398.6 kB / 0.8173 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.005333, allocations: 0 / 0.8173 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.546e-06/0.005337, allocations: 0 / 0.8173 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.00534, allocations: 7.938 kB / 0.8173 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.005347, allocations: 4.969 kB / 0.8173 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.005348, allocations: 0 / 0.8173 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.005348, allocations: 2.312 kB / 0.8173 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001331/0.005481, allocations: 303.2 kB / 0.8176 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.073e-05/0.005492, allocations: 15.83 kB / 0.8176 GB, free: 10.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.005505, allocations: 7.984 kB / 0.8176 GB, free: 10.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.726e-05/0.005552, allocations: 4 kB / 0.8176 GB, free: 10.18 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.889e-05/0.005581, allocations: 7.984 kB / 0.8176 GB, free: 10.17 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.005591, allocations: 7.344 kB / 0.8176 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.369e-05/0.005625, allocations: 131.2 kB / 0.8178 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4e-08/0.005625, allocations: 0 / 0.8178 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001458/0.005771, allocations: 16 kB / 0.8178 GB, free: 10.02 MB / 0.7292 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.591e-05/0.005837, allocations: 97.12 kB / 0.8179 GB, free: 9.918 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001223/0.005959, allocations: 162.4 kB / 0.818 GB, free: 9.73 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.00596, allocations: 0 / 0.818 GB, free: 9.73 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.006013, allocations: 121.7 kB / 0.8181 GB, free: 9.59 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.006195, allocations: 25.33 kB / 0.8182 GB, free: 9.566 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/0.006413, allocations: 184.3 kB / 0.8183 GB, free: 9.352 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.231e-05/0.006445, allocations: 65.8 kB / 0.8184 GB, free: 9.27 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.076e-05/0.006466, allocations: 8.547 kB / 0.8184 GB, free: 9.262 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.033e-05/0.006526, allocations: 82.8 kB / 0.8185 GB, free: 9.18 MB / 0.7292 GB Notification: Performance of SimCode: time 5.81e-07/0.006527, allocations: 1.625 kB / 0.8185 GB, free: 9.18 MB / 0.7292 GB Notification: Performance of Templates: time 0.002239/0.008766, allocations: 1.03 MB / 0.8195 GB, free: 8.195 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.802017107140273]