Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.000916/0.000916, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001078/0.001078, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 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.9435/0.9435, allocations: 177.1 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.346/2.346, allocations: 438.8 MB / 0.6827 GB, free: 13.52 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 7.875 kB / 0.8385 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.696e-05/1.847e-05, allocations: 6.312 kB / 0.8385 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00174/0.001759, allocations: 1.478 MB / 0.84 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0005823/0.002341, allocations: 470.6 kB / 0.8404 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.239e-05/0.002374, allocations: 0 / 0.8404 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.409e-05/0.002398, allocations: 0 / 0.8404 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.223e-05/0.00247, allocations: 11.88 kB / 0.8404 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001216/0.002592, allocations: 27.84 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 9.537e-05/0.002687, allocations: 47.84 kB / 0.8405 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.391e-05/0.002751, allocations: 0 / 0.8405 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 7.484e-05/0.002826, allocations: 35.91 kB / 0.8405 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.002879, allocations: 15.92 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/0.002896, allocations: 3.984 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.614e-06/0.002903, allocations: 8 kB / 0.8406 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.002925, allocations: 8 kB / 0.8406 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.321e-05/0.002959, allocations: 15.92 kB / 0.8406 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 8.867e-05/0.003047, allocations: 35.89 kB / 0.8406 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.003049, allocations: 0 / 0.8406 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.52e-07/0.00305, allocations: 0 / 0.8406 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.076e-06/0.003053, allocations: 0 / 0.8406 GB, free: 12.04 MB / 0.8073 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.0003469/0.0034, allocations: 290.5 kB / 0.8409 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.003431, allocations: 12.61 kB / 0.8409 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.577e-05/0.003457, allocations: 12.94 kB / 0.8409 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.204e-05/0.003529, allocations: 109.8 kB / 0.841 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.003539, allocations: 4.375 kB / 0.841 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.003549, allocations: 4.375 kB / 0.841 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.637e-05/0.003625, allocations: 79.86 kB / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.003631, allocations: 192 / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-06/0.003637, allocations: 384 / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.003644, allocations: 7.938 kB / 0.8411 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.785e-05/0.003672, allocations: 37.62 kB / 0.8412 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.003886, allocations: 160.2 kB / 0.8413 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.045e-05/0.003946, allocations: 60.27 kB / 0.8414 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.146e-05/0.003968, allocations: 34.56 kB / 0.8414 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.00398, allocations: 4 kB / 0.8414 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.536e-05/0.004075, allocations: 126.9 kB / 0.8415 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.004076, allocations: 0 / 0.8415 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9): time 0.0001392/0.004215, allocations: 162.7 kB / 0.8417 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.00425, allocations: 77.11 kB / 0.8418 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.632e-05/0.004307, allocations: 118.6 kB / 0.8419 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.004319, allocations: 29.7 kB / 0.8419 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.784e-05/0.004347, allocations: 88.11 kB / 0.842 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.004361, allocations: 19.89 kB / 0.842 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.004389, allocations: 25.7 kB / 0.842 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.115e-05/0.00446, allocations: 322.8 kB / 0.8423 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.137e-05/0.004482, allocations: 37.69 kB / 0.8424 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.275e-05/0.004514, allocations: 64.2 kB / 0.8424 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.818e-05/0.004573, allocations: 101.9 kB / 0.8425 GB, free: 9.836 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.004574, allocations: 0 / 0.8425 GB, free: 9.836 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 8.249e-05/0.004657, allocations: 129 kB / 0.8427 GB, free: 9.691 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.004681, allocations: 29.77 kB / 0.8427 GB, free: 9.656 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.004686, allocations: 7.938 kB / 0.8427 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.004699, allocations: 7.984 kB / 0.8427 GB, free: 9.641 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.204e-05/0.004731, allocations: 7.984 kB / 0.8427 GB, free: 9.633 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.706e-06/0.004734, allocations: 0 / 0.8427 GB, free: 9.633 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.004853, allocations: 8 kB / 0.8427 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.004861, allocations: 4 kB / 0.8427 GB, free: 9.621 MB / 0.8073 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.827e-05/0.004939, allocations: 151.5 kB / 0.8429 GB, free: 9.457 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.302e-05/0.004952, allocations: 4 kB / 0.8429 GB, free: 9.453 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.00497, allocations: 16.31 kB / 0.8429 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.004972, allocations: 4 kB / 0.8429 GB, free: 9.438 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.004973, allocations: 0 / 0.8429 GB, free: 9.438 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002565/0.00523, allocations: 3.984 kB / 0.8429 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.005436, allocations: 282.2 kB / 0.8432 GB, free: 9.121 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.005437, allocations: 4 kB / 0.8432 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.005442, allocations: 0 / 0.8432 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.005446, allocations: 3.938 kB / 0.8432 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.005452, allocations: 4 kB / 0.8432 GB, free: 9.109 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.005455, allocations: 4 kB / 0.8432 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.005455, allocations: 0 / 0.8432 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.441e-05/0.00555, allocations: 231.2 kB / 0.8434 GB, free: 8.852 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-06/0.005557, allocations: 7.938 kB / 0.8434 GB, free: 8.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.005571, allocations: 7.938 kB / 0.8434 GB, free: 8.836 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.151e-05/0.005622, allocations: 7.984 kB / 0.8434 GB, free: 8.828 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.821e-05/0.00565, allocations: 7.984 kB / 0.8434 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.005661, allocations: 4 kB / 0.8434 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.323e-05/0.005674, allocations: 12.86 kB / 0.8434 GB, free: 8.801 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005674, allocations: 0 / 0.8434 GB, free: 8.801 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001343/0.005809, allocations: 12 kB / 0.8435 GB, free: 8.789 MB / 0.8073 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 8.832e-05/0.005897, allocations: 84.41 kB / 0.8435 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001282/0.006025, allocations: 164.4 kB / 0.8437 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.006028, allocations: 0 / 0.8437 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.764e-05/0.006086, allocations: 109.9 kB / 0.8438 GB, free: 8.379 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.006245, allocations: 15.98 kB / 0.8438 GB, free: 8.363 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.006476, allocations: 178.2 kB / 0.844 GB, free: 8.156 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.145e-05/0.006507, allocations: 61.41 kB / 0.844 GB, free: 8.078 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.952e-05/0.006527, allocations: 4 kB / 0.844 GB, free: 8.074 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.006583, allocations: 67.36 kB / 0.8441 GB, free: 8.008 MB / 0.8073 GB Notification: Performance of SimCode: time 3.91e-07/0.006583, allocations: 4.125 kB / 0.8441 GB, free: 8.004 MB / 0.8073 GB Notification: Performance of Templates: time 0.002286/0.008869, allocations: 0.9982 MB / 0.8451 GB, free: 7.031 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.020232587121427]