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.01312/0.01312, allocations: 103.1 kB / 15.73 MB, free: 6.035 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.002362/0.002362, allocations: 199 kB / 16.67 MB, free: 5.969 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.523/1.523, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.381/2.381, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 62.31 kB / 0.9508 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3475, allocations: 140.4 MB / 1.088 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002799/0.3503, allocations: 1.427 MB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009756/0.3513, allocations: 444.3 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.759e-05/0.3514, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.798e-05/0.3515, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.807e-05/0.3516, allocations: 11.86 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.3518, allocations: 23.97 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.3519, allocations: 43.86 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3521, allocations: 12 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.133e-05/0.3522, allocations: 23.86 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.448e-05/0.3523, allocations: 19.92 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.3523, allocations: 4 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.3523, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.525e-05/0.3524, allocations: 11.92 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.925e-05/0.3524, allocations: 23.92 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.3526, allocations: 47.7 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3526, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3526, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.3526, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 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.0007452/0.3533, allocations: 399 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3534, allocations: 8.031 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.3535, allocations: 8.844 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.3537, allocations: 164.3 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.3537, allocations: 4.375 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.3537, allocations: 4.375 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.3539, allocations: 61.97 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3539, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.3539, allocations: 7.984 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.354, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.858e-05/0.354, allocations: 19.92 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004425/0.3545, allocations: 272.8 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.781e-05/0.3546, allocations: 38.58 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.569e-05/0.3546, allocations: 24.97 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.3547, allocations: 0 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.3549, allocations: 105 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.3549, allocations: 3.938 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002872/0.3552, allocations: 139.2 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.3552, allocations: 89.16 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.045e-05/0.3553, allocations: 109.8 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.3554, allocations: 33.7 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.723e-05/0.3554, allocations: 88.08 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.3554, allocations: 15.75 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.3555, allocations: 29.7 kB / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3556, allocations: 318.8 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.638e-05/0.3557, allocations: 19.98 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.401e-05/0.3557, allocations: 34.56 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.3558, allocations: 113.9 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3559, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001587/0.356, allocations: 131.3 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.3561, allocations: 29.7 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3561, allocations: 4 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3561, allocations: 0 / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.668e-05/0.3561, allocations: 4 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3562, allocations: 4.062 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.246e-05/0.3562, allocations: 11.98 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.3562, allocations: 4 kB / 1.092 GB, free: 12.88 MB / 0.8575 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.0001101/0.3564, allocations: 156.8 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/0.3564, allocations: 7.906 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.3564, allocations: 12.36 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.3564, allocations: 4 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3564, allocations: 0 / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3564, allocations: 4 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.3568, allocations: 396.5 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3568, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.364e-06/0.3568, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3569, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.3569, allocations: 7.938 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3569, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3569, allocations: 3.984 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.3571, allocations: 245 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.359e-05/0.3572, allocations: 81.05 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.3572, allocations: 4 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.536e-05/0.3573, allocations: 7.984 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.025e-05/0.3574, allocations: 7.938 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.3574, allocations: 8 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.996e-05/0.3575, allocations: 87.81 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3575, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002313/0.3577, allocations: 16 kB / 1.093 GB, free: 11.73 MB / 0.8575 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.0001102/0.3578, allocations: 99.25 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002085/0.358, allocations: 119.5 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.358, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.274e-05/0.3581, allocations: 99.31 kB / 1.093 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.3584, allocations: 11.98 kB / 1.093 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.3588, allocations: 157.6 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3591, allocations: 0.6846 MB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.858e-05/0.3592, allocations: 7.984 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.3592, allocations: 11.44 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.3592, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of Templates: time 0.003144/0.3624, allocations: 0.8715 MB / 1.095 GB, free: 9.602 MB / 0.8575 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