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.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009965/0.0009965, allocations: 98.77 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009612/0.0009612, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.584/2.584, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003499, allocations: 8 kB / 0.8707 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6586/0.659, allocations: 153.7 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001696/0.6608, allocations: 1.137 MB / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006205/0.6614, allocations: 407.5 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.297e-05/0.6615, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.6615, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.431e-05/0.6616, allocations: 19.91 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.6617, allocations: 15.97 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.548e-05/0.6618, allocations: 31.91 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.781e-05/0.6619, allocations: 3.984 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.268e-05/0.662, allocations: 23.92 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.894e-05/0.6621, allocations: 19.92 kB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.6621, allocations: 0 / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.6621, allocations: 4 kB / 1.022 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.988e-05/0.6621, allocations: 7.938 kB / 1.022 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.557e-05/0.6622, allocations: 29.7 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.34e-05/0.6622, allocations: 27.94 kB / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.6623, allocations: 0 / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.403e-06/0.6623, allocations: 0 / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.229e-06/0.6623, allocations: 0 / 1.022 GB, free: 15.35 MB / 0.7794 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.0005827/0.6629, allocations: 398.8 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.6629, allocations: 11.98 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.663, allocations: 4 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.6631, allocations: 167.1 kB / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.6632, allocations: 11.92 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.6632, allocations: 4 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.6633, allocations: 53.64 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.6633, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.6634, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.6634, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.571e-05/0.6634, allocations: 23.98 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004153/0.6638, allocations: 272.7 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.172e-05/0.6639, allocations: 46.5 kB / 1.023 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.664, allocations: 8.062 kB / 1.023 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.6642, allocations: 101.2 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.6642, allocations: 0 / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0003965/0.6646, allocations: 220.3 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.6647, allocations: 81.11 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.669e-05/0.6648, allocations: 109.8 kB / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.6648, allocations: 29.7 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.281e-05/0.6649, allocations: 88.14 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.6649, allocations: 19.78 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-06/0.6649, allocations: 4 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.665, allocations: 314.8 kB / 1.024 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.497e-05/0.6651, allocations: 23.92 kB / 1.024 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.453e-05/0.6651, allocations: 34.5 kB / 1.024 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.474e-05/0.6652, allocations: 49.7 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6652, allocations: 3.953 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001663/0.6654, allocations: 127.2 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.6654, allocations: 29.7 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.6654, allocations: 0 / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.6654, allocations: 4 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.167e-05/0.6655, allocations: 7.984 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.6655, allocations: 0 / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.874e-05/0.6656, allocations: 12.06 kB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.6656, allocations: 0 / 1.025 GB, free: 12.85 MB / 0.7794 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.6657, allocations: 155.5 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.6657, allocations: 11.86 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.946e-05/0.6658, allocations: 8.375 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.6658, allocations: 0 / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.6658, allocations: 0 / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.6658, allocations: 0 / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004217/0.6662, allocations: 412.1 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.6662, allocations: 0 / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.959e-06/0.6662, allocations: 4 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.6662, allocations: 0 / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.6663, allocations: 4.375 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.6663, allocations: 0 / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.6663, allocations: 4.062 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.6666, allocations: 237 kB / 1.025 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.6666, allocations: 81.11 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.6666, allocations: 8 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.6668, allocations: 11.98 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.6668, allocations: 7.984 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.6668, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.166e-05/0.6669, allocations: 91.81 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.422e-06/0.6669, allocations: 0 / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002294/0.6671, allocations: 19.94 kB / 1.026 GB, free: 11.7 MB / 0.7794 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 (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.0001152/0.6673, allocations: 107.2 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001747/0.6674, allocations: 111.6 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6674, allocations: 0 / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.6676, allocations: 95.31 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.6678, allocations: 23.92 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.6681, allocations: 163.6 kB / 1.026 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.6684, allocations: 0.6893 MB / 1.027 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.016e-05/0.6685, allocations: 7.859 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.55e-05/0.6685, allocations: 11.44 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.6685, allocations: 0 / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of Templates: time 0.002805/0.6713, allocations: 0.7328 MB / 1.028 GB, free: 9.691 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches