Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001162/0.001162, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.642/2.642, allocations: 390.2 MB / 0.6646 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9581/0.9593, allocations: 140.4 MB / 0.9496 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.004578/0.964, allocations: 1.42 MB / 0.951 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.9652, allocations: 430 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.054e-05/0.9653, allocations: 1.281 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.528e-05/0.9654, allocations: 0 / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.9656, allocations: 21.16 kB / 0.9514 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.9658, allocations: 20.27 kB / 0.9514 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.966, allocations: 51.86 kB / 0.9515 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.9662, allocations: 4.875 kB / 0.9515 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.012e-05/0.9663, allocations: 28.3 kB / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.696e-05/0.9664, allocations: 20.91 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.99e-05/0.9664, allocations: 3.156 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.9665, allocations: 4.062 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.002e-05/0.9665, allocations: 6.391 kB / 0.9515 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.973e-05/0.9666, allocations: 22.09 kB / 0.9515 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.9668, allocations: 46.69 kB / 0.9516 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.9668, allocations: 0 / 0.9516 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.956e-06/0.9668, allocations: 1.094 kB / 0.9516 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.9668, allocations: 0 / 0.9516 GB, free: 7.559 MB / 0.7169 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.0008353/0.9677, allocations: 393.7 kB / 0.952 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.9677, allocations: 13.22 kB / 0.952 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.9678, allocations: 7.734 kB / 0.952 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.968, allocations: 171.3 kB / 0.9521 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.968, allocations: 2.094 kB / 0.9521 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.968, allocations: 7.375 kB / 0.9522 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.9682, allocations: 57.14 kB / 0.9522 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.9682, allocations: 0 / 0.9522 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.9683, allocations: 1.156 kB / 0.9522 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.9683, allocations: 5.469 kB / 0.9522 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.517e-05/0.9684, allocations: 16.88 kB / 0.9522 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.9689, allocations: 285.4 kB / 0.9525 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.969, allocations: 37.05 kB / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.644e-05/0.9691, allocations: 29.56 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.9691, allocations: 1.312 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.9694, allocations: 105.8 kB / 0.9527 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 2.204e-06/0.9695, allocations: 0 / 0.9527 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0004325/0.9699, allocations: 137.3 kB / 0.9528 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.97, allocations: 79.58 kB / 0.9529 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.072e-05/0.9701, allocations: 120 kB / 0.953 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.9701, allocations: 30.84 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.9701, allocations: 89.33 kB / 0.9531 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.9702, allocations: 16.03 kB / 0.9531 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.9702, allocations: 26.39 kB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.38e-05/0.9703, allocations: 320.6 kB / 0.9535 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.71e-05/0.9704, allocations: 19.58 kB / 0.9535 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.568e-05/0.9705, allocations: 34.11 kB / 0.9535 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.9706, allocations: 117.3 kB / 0.9536 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.9707, allocations: 0 / 0.9536 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002607/0.9709, allocations: 118 kB / 0.9537 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.971, allocations: 43.53 kB / 0.9538 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.971, allocations: 1.219 kB / 0.9538 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.971, allocations: 1.281 kB / 0.9538 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.24e-05/0.9711, allocations: 2.719 kB / 0.9538 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.9711, allocations: 1.156 kB / 0.9538 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.9712, allocations: 13.55 kB / 0.9538 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.9713, allocations: 2.688 kB / 0.9538 GB, free: 5.32 MB / 0.7169 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.0001193/0.9714, allocations: 151.9 kB / 0.9539 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.9714, allocations: 12.52 kB / 0.9539 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.632e-05/0.9715, allocations: 13.66 kB / 0.954 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.9715, allocations: 5.234 kB / 0.954 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.9715, allocations: 0 / 0.954 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.9715, allocations: 5.375 kB / 0.954 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.9721, allocations: 406.3 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.9721, allocations: 1.312 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.176e-05/0.9721, allocations: 0 / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.9721, allocations: 1.25 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.9721, allocations: 6.531 kB / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.9722, allocations: 0 / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.9722, allocations: 0 / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.9725, allocations: 234.4 kB / 0.9546 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.9725, allocations: 86.94 kB / 0.9547 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.9726, allocations: 2.125 kB / 0.9547 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.9727, allocations: 5.25 kB / 0.9547 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.9728, allocations: 15.92 kB / 0.9547 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.9729, allocations: 10.25 kB / 0.9547 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.963e-05/0.9729, allocations: 89.61 kB / 0.9548 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.8e-07/0.973, allocations: 1.062 kB / 0.9548 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000451/0.9734, allocations: 13.56 kB / 0.9548 GB, free: 4.332 MB / 0.7169 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.0001262/0.9736, allocations: 102.6 kB / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000303/0.9739, allocations: 116.7 kB / 0.955 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.9739, allocations: 0 / 0.955 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.974, allocations: 97.55 kB / 0.9551 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.9746, allocations: 11.75 kB / 0.9551 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005318/0.9751, allocations: 156.9 kB / 0.9553 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.9753, allocations: 0.6954 MB / 0.9559 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.677e-05/0.9753, allocations: 6.562 kB / 0.956 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.9754, allocations: 11.06 kB / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of SimCode: time 5.21e-07/0.9754, allocations: 0 / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of Templates: time 0.005838/0.9813, allocations: 0.8569 MB / 0.9568 GB, free: 2.762 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches