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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.01078/0.01078, allocations: 97.58 kB / 15.73 MB, free: 5.996 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.002122/0.002122, allocations: 184.7 kB / 16.67 MB, free: 5.926 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.812/2.812, allocations: 472.6 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 71.83 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.334, allocations: 159.9 MB / 1.226 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002827/0.337, allocations: 1.424 MB / 1.227 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008594/0.3378, allocations: 446.6 kB / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.574e-05/0.3379, allocations: 0 / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.694e-05/0.338, allocations: 3.984 kB / 1.227 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.952e-05/0.3381, allocations: 7.875 kB / 1.227 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.3382, allocations: 19.98 kB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.3384, allocations: 51.83 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.717e-05/0.3385, allocations: 12 kB / 1.227 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.661e-05/0.3385, allocations: 23.86 kB / 1.228 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.091e-05/0.3386, allocations: 19.92 kB / 1.228 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.3386, allocations: 4 kB / 1.228 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.33e-05/0.3387, allocations: 4 kB / 1.228 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.667e-05/0.3387, allocations: 7.938 kB / 1.228 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.724e-05/0.3388, allocations: 19.92 kB / 1.228 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.3389, allocations: 51.69 kB / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3389, allocations: 0 / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3389, allocations: 0 / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.3389, allocations: 7.938 kB / 1.228 GB, free: 7.117 MB / 0.9825 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.0006017/0.3395, allocations: 389 kB / 1.228 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.3396, allocations: 12.03 kB / 1.228 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.3396, allocations: 8.891 kB / 1.228 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.3397, allocations: 172.3 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.3397, allocations: 4.375 kB / 1.228 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.3398, allocations: 384 / 1.228 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.3399, allocations: 58 kB / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.3399, allocations: 0 / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3399, allocations: 4 kB / 1.228 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3399, allocations: 3.984 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.862e-05/0.34, allocations: 15.94 kB / 1.228 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004035/0.3404, allocations: 276.8 kB / 1.229 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.381e-05/0.3405, allocations: 46.56 kB / 1.229 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.248e-05/0.3406, allocations: 16.98 kB / 1.229 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.3406, allocations: 3.984 kB / 1.229 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/0.3408, allocations: 101 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 4.769e-06/0.3408, allocations: 3.984 kB / 1.229 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0002903/0.3411, allocations: 143.3 kB / 1.229 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.3412, allocations: 81.11 kB / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.876e-05/0.3413, allocations: 110.2 kB / 1.229 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.3413, allocations: 37.64 kB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.843e-05/0.3413, allocations: 88.19 kB / 1.229 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.595e-05/0.3414, allocations: 15.91 kB / 1.229 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/0.3414, allocations: 25.72 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3416, allocations: 318.8 kB / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.488e-05/0.3416, allocations: 16 kB / 1.229 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.574e-05/0.3417, allocations: 38.56 kB / 1.23 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.3418, allocations: 118 kB / 1.23 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3418, allocations: 384 / 1.23 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001538/0.3419, allocations: 127.3 kB / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.342, allocations: 29.7 kB / 1.23 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.342, allocations: 7.984 kB / 1.23 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.342, allocations: 3.938 kB / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.666e-05/0.3421, allocations: 8.062 kB / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3421, allocations: 0 / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.169e-05/0.3421, allocations: 7.953 kB / 1.23 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.3422, allocations: 4 kB / 1.23 GB, free: 4.578 MB / 0.9825 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.0001277/0.3423, allocations: 164.2 kB / 1.23 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.411e-05/0.3423, allocations: 4 kB / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.3423, allocations: 4.438 kB / 1.23 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3423, allocations: 4 kB / 1.23 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3424, allocations: 8 kB / 1.23 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3424, allocations: 0 / 1.23 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004195/0.3428, allocations: 404.1 kB / 1.23 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3428, allocations: 4 kB / 1.23 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.655e-06/0.3428, allocations: 0 / 1.23 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3428, allocations: 0 / 1.23 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.3428, allocations: 8 kB / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3428, allocations: 0 / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3429, allocations: 0 / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.3431, allocations: 237 kB / 1.231 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.3431, allocations: 81.06 kB / 1.231 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.3432, allocations: 7.984 kB / 1.231 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3433, allocations: 8 kB / 1.231 GB, free: 3.543 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/0.3433, allocations: 11.92 kB / 1.231 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.3434, allocations: 4 kB / 1.231 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.881e-05/0.3434, allocations: 91.25 kB / 1.231 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3434, allocations: 0 / 1.231 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002347/0.3437, allocations: 24 kB / 1.231 GB, free: 3.414 MB / 0.9825 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.000128/0.3438, allocations: 99.23 kB / 1.231 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000202/0.344, allocations: 115.3 kB / 1.231 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.344, allocations: 3.938 kB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.3441, allocations: 91.34 kB / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.3444, allocations: 23.3 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003889/0.3448, allocations: 153.5 kB / 1.231 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.3452, allocations: 0.6885 MB / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.117e-05/0.3452, allocations: 4 kB / 1.232 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.855e-05/0.3452, allocations: 7.438 kB / 1.232 GB, free: 2.156 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3452, allocations: 4 kB / 1.232 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of Templates: time 0.003453/0.3487, allocations: 0.8717 MB / 1.233 GB, free: 1.289 MB / 0.9825 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches