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.001059/0.001059, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001054/0.001054, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 223.3 MB / 240 MB, free: 5.434 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.433/2.433, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003656, allocations: 8 kB / 0.8153 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.753/0.7534, allocations: 142.4 MB / 0.9544 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001455/0.7549, allocations: 1.135 MB / 0.9555 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006077/0.7555, allocations: 412.1 kB / 0.9559 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.533e-05/0.7555, allocations: 1.125 kB / 0.9559 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.346e-05/0.7556, allocations: 0 / 0.9559 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.603e-05/0.7557, allocations: 13.05 kB / 0.9559 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.7558, allocations: 11.42 kB / 0.9559 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.701e-05/0.7559, allocations: 49.41 kB / 0.956 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.884e-05/0.756, allocations: 8.453 kB / 0.956 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.404e-05/0.756, allocations: 18.98 kB / 0.956 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.349e-05/0.7561, allocations: 17.67 kB / 0.956 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.7561, allocations: 2.375 kB / 0.956 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.7562, allocations: 1.219 kB / 0.956 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.7562, allocations: 6.141 kB / 0.956 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.934e-05/0.7562, allocations: 41.8 kB / 0.9561 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.992e-05/0.7563, allocations: 22.92 kB / 0.9561 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.7563, allocations: 4.969 kB / 0.9561 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.254e-06/0.7563, allocations: 0 / 0.9561 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.7563, allocations: 0 / 0.9561 GB, free: 6.348 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.0004939/0.7568, allocations: 396.5 kB / 0.9565 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.7569, allocations: 9.5 kB / 0.9565 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.7569, allocations: 7.766 kB / 0.9565 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.186e-05/0.757, allocations: 165.8 kB / 0.9567 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.757, allocations: 1.281 kB / 0.9567 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.757, allocations: 6.719 kB / 0.9567 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.7572, allocations: 53.44 kB / 0.9567 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.7572, allocations: 0 / 0.9567 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.7572, allocations: 1.594 kB / 0.9567 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.7572, allocations: 0 / 0.9567 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.529e-05/0.7573, allocations: 25.84 kB / 0.9567 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003218/0.7576, allocations: 277 kB / 0.957 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.015e-05/0.7577, allocations: 44.75 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.995e-05/0.7577, allocations: 21.64 kB / 0.9571 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.7577, allocations: 9.422 kB / 0.9571 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.7579, allocations: 102 kB / 0.9572 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.7579, allocations: 0 / 0.9572 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.000249/0.7581, allocations: 147.4 kB / 0.9573 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.7582, allocations: 80.11 kB / 0.9574 GB, free: 5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.978e-05/0.7583, allocations: 111.5 kB / 0.9575 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.978e-06/0.7583, allocations: 26.86 kB / 0.9575 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.7583, allocations: 94.19 kB / 0.9576 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.7583, allocations: 14.72 kB / 0.9576 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.7583, allocations: 5.438 kB / 0.9576 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.59e-05/0.7584, allocations: 316.2 kB / 0.9579 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.093e-05/0.7584, allocations: 16.83 kB / 0.958 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.11e-05/0.7585, allocations: 37.81 kB / 0.958 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.27e-05/0.7585, allocations: 48.33 kB / 0.958 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.7585, allocations: 0 / 0.958 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001388/0.7587, allocations: 128.8 kB / 0.9582 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.7587, allocations: 36 kB / 0.9582 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.7587, allocations: 1.703 kB / 0.9582 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.7587, allocations: 5.141 kB / 0.9582 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.381e-05/0.7588, allocations: 2.781 kB / 0.9582 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.7588, allocations: 1.438 kB / 0.9582 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.14e-05/0.7589, allocations: 6.375 kB / 0.9582 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.7589, allocations: 7.812 kB / 0.9582 GB, free: 4.207 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.759, allocations: 158.8 kB / 0.9584 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.46e-05/0.759, allocations: 11.81 kB / 0.9584 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.166e-05/0.759, allocations: 9.344 kB / 0.9584 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.759, allocations: 5.016 kB / 0.9584 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.759, allocations: 0 / 0.9584 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.759, allocations: 5.141 kB / 0.9584 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002873/0.7593, allocations: 403.6 kB / 0.9588 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.7593, allocations: 0 / 0.9588 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.025e-06/0.7593, allocations: 1.562 kB / 0.9588 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.7593, allocations: 7.953 kB / 0.9588 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.7594, allocations: 2.188 kB / 0.9588 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.7594, allocations: 1.219 kB / 0.9588 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.7594, allocations: 3.938 kB / 0.9588 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001603/0.7595, allocations: 227.6 kB / 0.959 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.314e-05/0.7596, allocations: 82.62 kB / 0.9591 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.7596, allocations: 14.84 kB / 0.9591 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.874e-05/0.7597, allocations: 12.06 kB / 0.9591 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.7598, allocations: 7.766 kB / 0.9591 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.7598, allocations: 3.469 kB / 0.9591 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.01e-05/0.7598, allocations: 88.92 kB / 0.9592 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7598, allocations: 0 / 0.9592 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002332/0.76, allocations: 16.56 kB / 0.9592 GB, free: 3.219 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.209e-05/0.7601, allocations: 102.5 kB / 0.9593 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001504/0.7603, allocations: 123.9 kB / 0.9594 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7603, allocations: 4 kB / 0.9595 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.291e-05/0.7604, allocations: 85.3 kB / 0.9595 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.7607, allocations: 13.12 kB / 0.9595 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.761, allocations: 169.8 kB / 0.9597 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.7611, allocations: 0.6871 MB / 0.9604 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.803e-05/0.7611, allocations: 7.328 kB / 0.9604 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.7611, allocations: 10.84 kB / 0.9604 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7611, allocations: 0 / 0.9604 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of Templates: time 0.002718/0.7639, allocations: 0.728 MB / 0.9611 GB, free: 1.711 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