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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001003/0.001003, allocations: 98.64 kB / 16.02 MB, free: 76 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.001167/0.001167, allocations: 182.3 kB / 16.92 MB, free: 6.918 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.423/1.423, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.445/2.445, allocations: 390.9 MB / 0.667 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003707/0.0003709, allocations: 11.98 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7543/0.7547, allocations: 142.4 MB / 0.9557 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00136/0.7561, allocations: 1.147 MB / 0.9568 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006159/0.7567, allocations: 423.2 kB / 0.9572 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/0.7567, allocations: 0 / 0.9572 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.94e-05/0.7568, allocations: 5.359 kB / 0.9572 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.432e-05/0.7569, allocations: 8.766 kB / 0.9572 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001358/0.757, allocations: 23.89 kB / 0.9573 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.501e-05/0.7571, allocations: 46.52 kB / 0.9573 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.864e-05/0.7572, allocations: 8.406 kB / 0.9573 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.446e-05/0.7572, allocations: 19.23 kB / 0.9573 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.234e-05/0.7573, allocations: 22.41 kB / 0.9573 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.7573, allocations: 1.406 kB / 0.9574 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.233e-05/0.7573, allocations: 2.344 kB / 0.9574 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.159e-05/0.7574, allocations: 5.172 kB / 0.9574 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.779e-05/0.7574, allocations: 44.33 kB / 0.9574 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.452e-05/0.7575, allocations: 27.61 kB / 0.9574 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.7575, allocations: 3.938 kB / 0.9574 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7575, allocations: 0 / 0.9574 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.888e-06/0.7575, allocations: 0 / 0.9574 GB, free: 6.332 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.0004727/0.758, allocations: 399 kB / 0.9578 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.758, allocations: 9.906 kB / 0.9578 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.7581, allocations: 8.031 kB / 0.9578 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.572e-05/0.7582, allocations: 179.2 kB / 0.958 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.7582, allocations: 1.906 kB / 0.958 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.7582, allocations: 7.156 kB / 0.958 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.7583, allocations: 53.44 kB / 0.9581 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.7583, allocations: 1.062 kB / 0.9581 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.7584, allocations: 0 / 0.9581 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.7584, allocations: 5.016 kB / 0.9581 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.204e-05/0.7584, allocations: 21.86 kB / 0.9581 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.7588, allocations: 273.7 kB / 0.9583 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.168e-05/0.7588, allocations: 44.34 kB / 0.9584 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.575e-05/0.7589, allocations: 18.08 kB / 0.9584 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.7589, allocations: 5.062 kB / 0.9584 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.7591, allocations: 102.1 kB / 0.9585 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.7591, allocations: 0.9688 kB / 0.9585 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002599/0.7594, allocations: 147.5 kB / 0.9586 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.7594, allocations: 84.67 kB / 0.9587 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.595e-05/0.7595, allocations: 111.2 kB / 0.9588 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.7595, allocations: 26.95 kB / 0.9589 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.843e-05/0.7595, allocations: 86.36 kB / 0.9589 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.7595, allocations: 15.39 kB / 0.959 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.7596, allocations: 17.34 kB / 0.959 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.906e-05/0.7596, allocations: 324 kB / 0.9593 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.906e-05/0.7597, allocations: 13.5 kB / 0.9593 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.918e-05/0.7597, allocations: 42.16 kB / 0.9593 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.363e-05/0.7598, allocations: 113.3 kB / 0.9594 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.7598, allocations: 96 / 0.9594 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001476/0.76, allocations: 128.8 kB / 0.9596 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.76, allocations: 32.11 kB / 0.9596 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.76, allocations: 1.375 kB / 0.9596 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.76, allocations: 5.469 kB / 0.9596 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.988e-05/0.7601, allocations: 6.781 kB / 0.9596 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.7601, allocations: 5.328 kB / 0.9596 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.7602, allocations: 6.562 kB / 0.9596 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.7602, allocations: 3.688 kB / 0.9596 GB, free: 4.102 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 7.686e-05/0.7602, allocations: 154.5 kB / 0.9598 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.7603, allocations: 8.281 kB / 0.9598 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.7603, allocations: 9.344 kB / 0.9598 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.7603, allocations: 5.031 kB / 0.9598 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.7603, allocations: 0 / 0.9598 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.7603, allocations: 1.031 kB / 0.9598 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.7606, allocations: 399 kB / 0.9602 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.7606, allocations: 0 / 0.9602 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-06/0.7607, allocations: 1.969 kB / 0.9602 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.7607, allocations: 3.984 kB / 0.9602 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.7607, allocations: 5.875 kB / 0.9602 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.7607, allocations: 5.844 kB / 0.9602 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.7607, allocations: 4 kB / 0.9602 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.7609, allocations: 240.3 kB / 0.9604 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.427e-05/0.7609, allocations: 82.52 kB / 0.9605 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.7609, allocations: 1.688 kB / 0.9605 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.761, allocations: 12.83 kB / 0.9605 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.7611, allocations: 14.83 kB / 0.9605 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.7611, allocations: 7.688 kB / 0.9605 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.908e-05/0.7611, allocations: 85 kB / 0.9606 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7611, allocations: 0 / 0.9606 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002312/0.7614, allocations: 14.25 kB / 0.9606 GB, free: 3.117 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 8.255e-05/0.7615, allocations: 104 kB / 0.9607 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001522/0.7616, allocations: 117 kB / 0.9608 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.7616, allocations: 0 / 0.9608 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.014e-05/0.7617, allocations: 94.48 kB / 0.9609 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.762, allocations: 16.98 kB / 0.961 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.7623, allocations: 191 kB / 0.9611 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.7625, allocations: 0.6833 MB / 0.9618 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.7625, allocations: 11.41 kB / 0.9618 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of SimCode: time 3.71e-07/0.7625, allocations: 4 kB / 0.9618 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of Templates: time 0.002179/0.7647, allocations: 0.8885 MB / 0.9627 GB, free: 1.5 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches