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.01159/0.01159, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002538/0.002538, allocations: 194.3 kB / 16.67 MB, free: 5.977 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.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.941/2.941, allocations: 472.7 MB / 0.7453 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 67.89 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3447, allocations: 159.9 MB / 1.226 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002653/0.3474, allocations: 1.425 MB / 1.227 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007627/0.3482, allocations: 434.9 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.953e-05/0.3482, allocations: 0 / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.159e-05/0.3483, allocations: 3.938 kB / 1.227 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.21e-05/0.3484, allocations: 7.922 kB / 1.227 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001665/0.3485, allocations: 23.92 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.3487, allocations: 47.84 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3488, allocations: 8 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.861e-05/0.3489, allocations: 23.86 kB / 1.228 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.354e-05/0.3489, allocations: 23.91 kB / 1.228 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.374e-05/0.349, allocations: 8 kB / 1.228 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.431e-05/0.349, allocations: 7.938 kB / 1.228 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.847e-05/0.349, allocations: 11.92 kB / 1.228 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.786e-05/0.3491, allocations: 19.94 kB / 1.228 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.3492, allocations: 47.75 kB / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3492, allocations: 0 / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3493, allocations: 0 / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.3493, allocations: 0 / 1.228 GB, free: 7.125 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.0006992/0.35, allocations: 393 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.35, allocations: 16.02 kB / 1.228 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.244e-05/0.3501, allocations: 4.891 kB / 1.228 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.3502, allocations: 172.3 kB / 1.228 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.3503, allocations: 4.375 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.3503, allocations: 384 / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.3504, allocations: 57.98 kB / 1.228 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3504, allocations: 0 / 1.228 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.3504, allocations: 4 kB / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3505, allocations: 4 kB / 1.228 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.827e-05/0.3505, allocations: 12 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004296/0.351, allocations: 276.8 kB / 1.229 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.596e-05/0.3511, allocations: 42.52 kB / 1.229 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.721e-05/0.3511, allocations: 24.95 kB / 1.229 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.3511, allocations: 0 / 1.229 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.3513, allocations: 109.2 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.3513, allocations: 0 / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0002831/0.3516, allocations: 139.3 kB / 1.229 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.3517, allocations: 81.11 kB / 1.229 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.222e-05/0.3518, allocations: 113.9 kB / 1.229 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3518, allocations: 29.69 kB / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.3519, allocations: 92.08 kB / 1.229 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.3519, allocations: 11.91 kB / 1.229 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.3519, allocations: 33.7 kB / 1.229 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3521, allocations: 319.1 kB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.3521, allocations: 19.92 kB / 1.23 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.197e-05/0.3522, allocations: 46.44 kB / 1.23 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.3523, allocations: 118 kB / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3523, allocations: 0 / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001483/0.3525, allocations: 123.3 kB / 1.23 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.3525, allocations: 33.69 kB / 1.23 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3525, allocations: 4 kB / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3525, allocations: 3.938 kB / 1.23 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.54e-05/0.3526, allocations: 4 kB / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.3526, allocations: 0 / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.442e-05/0.3527, allocations: 15.94 kB / 1.23 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.3527, allocations: 4.062 kB / 1.23 GB, free: 4.57 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.0001106/0.3528, allocations: 157.2 kB / 1.23 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.3528, allocations: 4 kB / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.577e-05/0.3528, allocations: 8.375 kB / 1.23 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.3529, allocations: 3.984 kB / 1.23 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3529, allocations: 0 / 1.23 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3529, allocations: 4 kB / 1.23 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.3533, allocations: 400.1 kB / 1.23 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3533, allocations: 4 kB / 1.23 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.838e-06/0.3533, allocations: 7.938 kB / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3533, allocations: 0 / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3533, allocations: 0 / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3533, allocations: 4 kB / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3533, allocations: 0 / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002149/0.3535, allocations: 225.2 kB / 1.231 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/0.3536, allocations: 92.98 kB / 1.231 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.3536, allocations: 4 kB / 1.231 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.556e-05/0.3537, allocations: 8 kB / 1.231 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.3538, allocations: 15.86 kB / 1.231 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.3538, allocations: 8.094 kB / 1.231 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.746e-05/0.3539, allocations: 87.2 kB / 1.231 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3539, allocations: 0 / 1.231 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002281/0.3541, allocations: 20 kB / 1.231 GB, free: 3.418 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.0001189/0.3542, allocations: 101.3 kB / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001786/0.3544, allocations: 123.4 kB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3544, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.996e-05/0.3545, allocations: 87.39 kB / 1.231 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3548, allocations: 16.12 kB / 1.231 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.3552, allocations: 150.2 kB / 1.231 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.3555, allocations: 0.6886 MB / 1.232 GB, free: 2.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.727e-05/0.3555, allocations: 11.94 kB / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.3555, allocations: 7.438 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.3555, allocations: 0 / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of Templates: time 0.003047/0.3586, allocations: 0.8833 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