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.001249/0.001249, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001375/0.001375, allocations: 195.8 kB / 16.14 MB, free: 6.645 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.373/1.373, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.792/2.792, allocations: 472.6 MB / 0.7447 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 66.92 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3655, allocations: 159.9 MB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002974/0.3685, allocations: 1.484 MB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3697, allocations: 438.8 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.82e-05/0.3697, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.683e-05/0.3698, allocations: 4 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.37, allocations: 7.922 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.3702, allocations: 15.98 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.3704, allocations: 51.84 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.3705, allocations: 7.938 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.076e-05/0.3706, allocations: 19.92 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.3707, allocations: 19.86 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.3708, allocations: 4 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.604e-05/0.3708, allocations: 0 / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.611e-05/0.3708, allocations: 8 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.403e-05/0.3709, allocations: 23.84 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.3711, allocations: 39.89 kB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-05/0.3711, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.163e-06/0.3711, allocations: 4 kB / 1.07 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.3711, allocations: 0 / 1.07 GB, free: 8.699 MB / 0.8262 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.000849/0.372, allocations: 385.4 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/0.372, allocations: 8.031 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.371e-05/0.3721, allocations: 8.844 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002312/0.3723, allocations: 176.2 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3724, allocations: 8.312 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.3724, allocations: 8.375 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.3726, allocations: 54 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3727, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3727, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.3727, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.586e-05/0.3728, allocations: 15.98 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006666/0.3734, allocations: 272.8 kB / 1.07 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.3736, allocations: 50.5 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.258e-05/0.3736, allocations: 16.98 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.3737, allocations: 4 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.374, allocations: 97.08 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.374, allocations: 0 / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0004144/0.3744, allocations: 147.2 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.3745, allocations: 81.11 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.3747, allocations: 122 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.3747, allocations: 29.7 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.084e-05/0.3748, allocations: 80.14 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.3748, allocations: 23.73 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/0.3749, allocations: 25.72 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.375, allocations: 322.8 kB / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.32e-05/0.3751, allocations: 16 kB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.818e-05/0.3752, allocations: 42.5 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.3753, allocations: 106 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3753, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001946/0.3755, allocations: 127.3 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.81e-05/0.3756, allocations: 35.42 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3756, allocations: 4 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3756, allocations: 4.062 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.908e-05/0.3757, allocations: 11.92 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.3757, allocations: 0 / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.977e-05/0.3758, allocations: 7.938 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3758, allocations: 8 kB / 1.072 GB, free: 6.16 MB / 0.8262 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.0001542/0.376, allocations: 153.2 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.376, allocations: 7.906 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.053e-05/0.376, allocations: 8.359 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3761, allocations: 8 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3761, allocations: 0 / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3761, allocations: 0 / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.3765, allocations: 408.1 kB / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3766, allocations: 0 / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.444e-06/0.3766, allocations: 384 / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3766, allocations: 0 / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3766, allocations: 7.938 kB / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3766, allocations: 0 / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3766, allocations: 3.938 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.3768, allocations: 237.1 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.3769, allocations: 81.02 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.3769, allocations: 8 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.377, allocations: 7.984 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.3771, allocations: 11.92 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.3771, allocations: 11.88 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.929e-05/0.3772, allocations: 91.27 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3772, allocations: 0 / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000241/0.3774, allocations: 20 kB / 1.073 GB, free: 5 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.0001341/0.3775, allocations: 95.25 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002131/0.3778, allocations: 115.3 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3778, allocations: 0 / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.3779, allocations: 87.41 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.3782, allocations: 24.16 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003807/0.3786, allocations: 159.1 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.3789, allocations: 0.6854 MB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.3789, allocations: 7.984 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.3789, allocations: 11.44 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of SimCode: time 1.473e-06/0.3789, allocations: 4 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of Templates: time 0.003001/0.382, allocations: 0.7787 MB / 1.075 GB, free: 2.969 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/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