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.008198/0.008197, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001685/0.001685, allocations: 196.9 kB / 16.67 MB, free: 5.93 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.697/2.697, allocations: 461.9 MB / 0.7347 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 67.89 kB / 1.054 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8485/0.8499, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003394/0.8534, allocations: 1.431 MB / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009181/0.8543, allocations: 431 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.298e-05/0.8544, allocations: 0 / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.721e-05/0.8544, allocations: 7.922 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.8546, allocations: 11.88 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.8548, allocations: 23.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.8549, allocations: 55.83 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.852e-05/0.8551, allocations: 8 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.349e-05/0.8551, allocations: 19.92 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.275e-05/0.8552, allocations: 19.86 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.8552, allocations: 4 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.439e-05/0.8553, allocations: 4 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.052e-05/0.8553, allocations: 4 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.717e-05/0.8554, allocations: 23.86 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.8555, allocations: 39.88 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.8555, allocations: 4 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.673e-06/0.8555, allocations: 3.938 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.8556, allocations: 0 / 1.21 GB, free: 11.54 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.0006818/0.8562, allocations: 397 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.8563, allocations: 8.031 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.952e-05/0.8564, allocations: 8.844 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.8565, allocations: 178.1 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.8565, allocations: 4.375 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.8565, allocations: 4.375 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.8567, allocations: 57.94 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.8567, allocations: 0 / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.8567, allocations: 0 / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.8567, allocations: 0 / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.883e-05/0.8568, allocations: 19.98 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004378/0.8572, allocations: 276.8 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.713e-05/0.8573, allocations: 42.56 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.761e-05/0.8574, allocations: 20.92 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.8574, allocations: 7.984 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002163/0.8576, allocations: 93.09 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.864e-06/0.8576, allocations: 0 / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0002956/0.8579, allocations: 147.2 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.858, allocations: 85.11 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.498e-05/0.8581, allocations: 109.8 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.8581, allocations: 29.7 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.457e-05/0.8582, allocations: 92.14 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.8582, allocations: 15.81 kB / 1.211 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-05/0.8583, allocations: 21.72 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.8584, allocations: 326.8 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.373e-05/0.8584, allocations: 12 kB / 1.212 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.687e-05/0.8585, allocations: 42.56 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.8586, allocations: 109.9 kB / 1.212 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.8586, allocations: 4 kB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001718/0.8588, allocations: 123.6 kB / 1.212 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.8589, allocations: 33.7 kB / 1.212 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.8589, allocations: 4 kB / 1.212 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.8589, allocations: 7.984 kB / 1.212 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.395e-05/0.8589, allocations: 7.938 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.859, allocations: 3.984 kB / 1.212 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.695e-05/0.859, allocations: 8 kB / 1.212 GB, free: 9 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-06/0.859, allocations: 4.062 kB / 1.212 GB, free: 8.996 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.0001416/0.8592, allocations: 159.5 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.8592, allocations: 7.906 kB / 1.212 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.8592, allocations: 8.375 kB / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.8593, allocations: 4 kB / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.8593, allocations: 0 / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.8593, allocations: 0 / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.8597, allocations: 408.1 kB / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8597, allocations: 0 / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-06/0.8597, allocations: 0 / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.8598, allocations: 0 / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.8598, allocations: 8 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.8598, allocations: 384 / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.8598, allocations: 0 / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.86, allocations: 241 kB / 1.213 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/0.8601, allocations: 81.02 kB / 1.213 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.8601, allocations: 7.984 kB / 1.213 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.8602, allocations: 8 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.8603, allocations: 11.92 kB / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.8603, allocations: 4 kB / 1.213 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.365e-05/0.8604, allocations: 99.25 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8604, allocations: 0 / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002432/0.8606, allocations: 16 kB / 1.213 GB, free: 7.832 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.0001165/0.8608, allocations: 101.2 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001902/0.861, allocations: 119.3 kB / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.861, allocations: 0 / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.507e-05/0.8611, allocations: 83.41 kB / 1.213 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.8614, allocations: 20.11 kB / 1.213 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.8617, allocations: 152.3 kB / 1.213 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.862, allocations: 0.6846 MB / 1.214 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.124e-05/0.8621, allocations: 7.984 kB / 1.214 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.8621, allocations: 11.44 kB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of SimCode: time 4.91e-07/0.8621, allocations: 0 / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of Templates: time 0.003277/0.8654, allocations: 0.8716 MB / 1.215 GB, free: 5.719 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