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.001019/0.001019, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 185.5 kB / 16.92 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.733/2.733, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003569, allocations: 10.09 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3487, allocations: 159.6 MB / 1.059 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001632/0.3503, allocations: 1.167 MB / 1.06 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007947/0.3512, allocations: 426.9 kB / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.96e-05/0.3512, allocations: 0 / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.184e-05/0.3512, allocations: 7.922 kB / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.05e-05/0.3513, allocations: 7.922 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001482/0.3515, allocations: 19.98 kB / 1.061 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.562e-05/0.3516, allocations: 43.86 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3517, allocations: 4 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.419e-05/0.3517, allocations: 23.86 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.909e-05/0.3518, allocations: 19.91 kB / 1.061 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.3518, allocations: 4 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.009e-05/0.3519, allocations: 0 / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.51e-05/0.3519, allocations: 7.938 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.756e-05/0.3519, allocations: 41.62 kB / 1.061 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.919e-05/0.352, allocations: 27.95 kB / 1.061 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3521, allocations: 4 kB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.993e-06/0.3521, allocations: 0 / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.3521, allocations: 0 / 1.061 GB, free: 3.199 MB / 0.8106 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.0005886/0.3527, allocations: 385.4 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3527, allocations: 19.91 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.784e-05/0.3528, allocations: 4.938 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.3529, allocations: 184.2 kB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3529, allocations: 4.375 kB / 1.062 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.3529, allocations: 384 / 1.062 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.3531, allocations: 57.94 kB / 1.062 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3531, allocations: 3.984 kB / 1.062 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.3531, allocations: 4 kB / 1.062 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3531, allocations: 0 / 1.062 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.479e-05/0.3532, allocations: 15.98 kB / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004274/0.3536, allocations: 272.8 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.462e-05/0.3537, allocations: 46.5 kB / 1.062 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.145e-05/0.3538, allocations: 20.98 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.3538, allocations: 0 / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.354, allocations: 105 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.354, allocations: 4 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002993/0.3543, allocations: 147.3 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3544, allocations: 81.11 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3545, allocations: 105.8 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3545, allocations: 33.7 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.732e-05/0.3546, allocations: 84.05 kB / 1.063 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.3546, allocations: 19.8 kB / 1.063 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.3547, allocations: 17.72 kB / 1.063 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3548, allocations: 322.8 kB / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.178e-05/0.3548, allocations: 20 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.297e-05/0.3549, allocations: 38.5 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.355, allocations: 106.4 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.355, allocations: 0 / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001731/0.3552, allocations: 135.3 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.3552, allocations: 29.7 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3552, allocations: 4 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3552, allocations: 0 / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-05/0.3553, allocations: 7.938 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.3553, allocations: 3.938 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.86e-05/0.3554, allocations: 23.83 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.3554, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 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 0.0001138/0.3555, allocations: 155.5 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.3555, allocations: 4 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.162e-05/0.3556, allocations: 12.38 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3556, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3556, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.3556, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003867/0.356, allocations: 400.1 kB / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.356, allocations: 0 / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-06/0.356, allocations: 0 / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.356, allocations: 4 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.356, allocations: 8.359 kB / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.356, allocations: 0 / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.356, allocations: 0 / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.3563, allocations: 241 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.054e-05/0.3564, allocations: 85.02 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.3564, allocations: 0 / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.3565, allocations: 11.98 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.3566, allocations: 19.92 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.3566, allocations: 4 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.474e-05/0.3566, allocations: 83.28 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3566, allocations: 0 / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002301/0.3569, allocations: 16 kB / 1.064 GB, free: 15.51 MB / 0.8262 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 0.0001486/0.357, allocations: 105 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001675/0.3572, allocations: 115.3 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3572, allocations: 4.125 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.823e-05/0.3573, allocations: 91.39 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.3576, allocations: 11.98 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.358, allocations: 186.3 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.3583, allocations: 0.6926 MB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.826e-05/0.3583, allocations: 11.44 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3584, allocations: 0 / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of Templates: time 0.002359/0.3607, allocations: 0.889 MB / 1.066 GB, free: 13.32 MB / 0.8262 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches