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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001036/0.001036, 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.001032/0.001032, allocations: 193.2 kB / 16.14 MB, free: 6.648 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: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.672/2.672, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 64.94 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.345, allocations: 157.4 MB / 1.052 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003355/0.3484, allocations: 1.486 MB / 1.054 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008699/0.3493, allocations: 450.8 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.3494, allocations: 0 / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.203e-05/0.3495, allocations: 4 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.3496, allocations: 3.938 kB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.3498, allocations: 19.97 kB / 1.054 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.779e-05/0.3499, allocations: 47.84 kB / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.35, allocations: 8 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.941e-05/0.3501, allocations: 19.88 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.612e-05/0.3502, allocations: 19.91 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.3502, allocations: 4 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.546e-05/0.3503, allocations: 0 / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.092e-05/0.3503, allocations: 11.94 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.76e-05/0.3504, allocations: 19.91 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.3505, allocations: 43.83 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3505, allocations: 0 / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3505, allocations: 0 / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.3505, allocations: 0 / 1.054 GB, free: 6.738 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.0006986/0.3512, allocations: 389.4 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3513, allocations: 8.031 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.3513, allocations: 12.78 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.3515, allocations: 172.3 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.3515, allocations: 8.359 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.3515, allocations: 4.375 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.3517, allocations: 58 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3517, allocations: 0 / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3517, allocations: 3.938 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.3517, allocations: 0 / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.216e-05/0.3518, allocations: 15.98 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004975/0.3523, allocations: 280.7 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.672e-05/0.3524, allocations: 42.56 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.061e-05/0.3525, allocations: 20.98 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.3525, allocations: 4 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.3527, allocations: 101 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.094e-06/0.3528, allocations: 0 / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0003404/0.3531, allocations: 135.4 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.3532, allocations: 81.11 kB / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.581e-05/0.3533, allocations: 117.8 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.3533, allocations: 37.7 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.3534, allocations: 80.14 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.3534, allocations: 15.81 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.25e-05/0.3534, allocations: 29.7 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3536, allocations: 322.8 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.25e-05/0.3536, allocations: 16 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.742e-05/0.3537, allocations: 38.5 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.819e-05/0.3538, allocations: 113.9 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3538, allocations: 0 / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001665/0.3539, allocations: 127.2 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.354, allocations: 35.58 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.354, allocations: 0 / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.354, allocations: 0 / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.909e-05/0.3541, allocations: 4 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.3541, allocations: 8.047 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.443e-05/0.3542, allocations: 7.938 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.3542, allocations: 8 kB / 1.056 GB, free: 4.199 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.0001228/0.3543, allocations: 155.8 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.3543, allocations: 7.906 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.3544, allocations: 4.375 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3544, allocations: 7.984 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3544, allocations: 3.938 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3544, allocations: 4 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004028/0.3548, allocations: 404.1 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3548, allocations: 64 / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.017e-06/0.3548, allocations: 4 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3548, allocations: 3.984 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.3549, allocations: 4 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3549, allocations: 0 / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3549, allocations: 0 / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.3551, allocations: 241 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.3552, allocations: 77.11 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.3552, allocations: 8 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.3553, allocations: 7.984 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/0.3554, allocations: 11.92 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.3554, allocations: 4 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.754e-05/0.3554, allocations: 83.83 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3554, allocations: 0 / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002336/0.3557, allocations: 24 kB / 1.057 GB, free: 3.047 MB / 0.8106 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.000115/0.3558, allocations: 99.23 kB / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001857/0.356, allocations: 111.3 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.356, allocations: 0 / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.782e-05/0.3561, allocations: 95.33 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.3564, allocations: 17.19 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003724/0.3568, allocations: 163.7 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.3571, allocations: 0.6848 MB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.722e-05/0.3572, allocations: 7.984 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.3572, allocations: 15.38 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3572, allocations: 0 / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of Templates: time 0.003322/0.3605, allocations: 0.7676 MB / 1.059 GB, free: 1.02 MB / 0.8106 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