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.008235/0.008235, allocations: 96.84 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.001682/0.001682, allocations: 192.8 kB / 16.67 MB, free: 5.965 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.528/1.528, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.707/2.707, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001554, allocations: 63.91 kB / 1.054 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.915/0.9165, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002988/0.9196, allocations: 1.421 MB / 1.209 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008997/0.9205, allocations: 435 kB / 1.209 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.519e-05/0.9206, allocations: 0 / 1.209 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.523e-05/0.9206, allocations: 3.938 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.9208, allocations: 11.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.921, allocations: 19.92 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.9212, allocations: 47.86 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.9213, allocations: 19.95 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.156e-05/0.9214, allocations: 19.88 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.234e-05/0.9215, allocations: 27.91 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.9215, allocations: 4 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.363e-05/0.9215, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.9216, allocations: 7.938 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.243e-05/0.9216, allocations: 23.92 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001416/0.9218, allocations: 39.81 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.964e-06/0.9218, allocations: 4 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.793e-06/0.9218, allocations: 0 / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.812e-06/0.9218, allocations: 0 / 1.21 GB, free: 11.51 MB / 0.9356 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.0006384/0.9224, allocations: 397 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.9225, allocations: 12.03 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.9225, allocations: 4.844 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.9227, allocations: 174.1 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.9227, allocations: 4.375 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.9227, allocations: 4.375 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.9229, allocations: 61.92 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.9229, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.9229, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.9229, allocations: 4 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.474e-05/0.923, allocations: 23.98 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004177/0.9234, allocations: 268.8 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 9.42e-05/0.9235, allocations: 46.5 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.855e-05/0.9236, allocations: 24.98 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.9236, allocations: 4.062 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.9238, allocations: 101.1 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.9238, allocations: 0 / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0002863/0.9241, allocations: 139.2 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.9242, allocations: 81.11 kB / 1.211 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.126e-05/0.9243, allocations: 109.8 kB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.9243, allocations: 25.7 kB / 1.211 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.588e-05/0.9243, allocations: 96.09 kB / 1.211 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.9244, allocations: 19.8 kB / 1.211 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.9244, allocations: 25.7 kB / 1.211 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.9245, allocations: 318.8 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.616e-05/0.9246, allocations: 15.98 kB / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-05/0.9246, allocations: 46.44 kB / 1.212 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.9247, allocations: 110 kB / 1.212 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.9247, allocations: 0 / 1.212 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001527/0.9249, allocations: 127.2 kB / 1.212 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.9249, allocations: 33.7 kB / 1.212 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.9249, allocations: 0 / 1.212 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.925, allocations: 4.375 kB / 1.212 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.097e-05/0.925, allocations: 7.938 kB / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.925, allocations: 4.062 kB / 1.212 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.249e-05/0.9251, allocations: 7.984 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.9251, allocations: 7.938 kB / 1.212 GB, free: 8.965 MB / 0.9356 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.0001256/0.9253, allocations: 147.5 kB / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.9253, allocations: 11.89 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.104e-05/0.9253, allocations: 8.375 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.9253, allocations: 0 / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.9253, allocations: 0 / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.9253, allocations: 0 / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.9258, allocations: 408.1 kB / 1.212 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.9258, allocations: 0 / 1.212 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.869e-06/0.9258, allocations: 4 kB / 1.212 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.9258, allocations: 3.984 kB / 1.212 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.9258, allocations: 3.984 kB / 1.212 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.9258, allocations: 0 / 1.212 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.9258, allocations: 7.938 kB / 1.212 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.9261, allocations: 233.1 kB / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.9261, allocations: 85.02 kB / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.9261, allocations: 0 / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.9262, allocations: 16.05 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.124e-05/0.9263, allocations: 11.94 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.9263, allocations: 3.984 kB / 1.213 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.435e-05/0.9264, allocations: 91.81 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.563e-06/0.9264, allocations: 3.938 kB / 1.213 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002308/0.9266, allocations: 15.94 kB / 1.213 GB, free: 7.809 MB / 0.9356 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.0001045/0.9267, allocations: 113.6 kB / 1.213 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001814/0.9269, allocations: 111.3 kB / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9269, allocations: 0 / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.058e-05/0.927, allocations: 91.39 kB / 1.213 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.9273, allocations: 21.97 kB / 1.213 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003468/0.9277, allocations: 145.6 kB / 1.213 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.9279, allocations: 0.6885 MB / 1.214 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.081e-05/0.9279, allocations: 4 kB / 1.214 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.928, allocations: 15.44 kB / 1.214 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.928, allocations: 0 / 1.214 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of Templates: time 0.00325/0.9312, allocations: 0.8984 MB / 1.215 GB, free: 5.656 MB / 0.9356 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