Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00167/0.00167, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001958/0.001958, allocations: 189.1 kB / 16.25 MB, free: 6.637 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.461/1.461, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.818/2.818, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 67.89 kB / 0.8687 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6537/0.6556, allocations: 151.6 MB / 1.017 GB, free: 2.695 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002906/0.6586, allocations: 1.488 MB / 1.018 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008093/0.6594, allocations: 431 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.246e-05/0.6595, allocations: 0 / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.159e-05/0.6595, allocations: 7.938 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.457e-05/0.6596, allocations: 11.92 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001614/0.6598, allocations: 11.98 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.6599, allocations: 51.84 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.6601, allocations: 8 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.9e-05/0.6601, allocations: 23.86 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.374e-05/0.6602, allocations: 23.92 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.6602, allocations: 0 / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.616e-05/0.6603, allocations: 4 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.708e-05/0.6603, allocations: 11.92 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.73e-05/0.6603, allocations: 19.92 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.6605, allocations: 43.83 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.6605, allocations: 0 / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6605, allocations: 0 / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.6605, allocations: 4 kB / 1.019 GB, free: 0.5547 MB / 0.7637 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.0006361/0.6611, allocations: 395 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.6612, allocations: 8.031 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.6612, allocations: 8.844 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.6614, allocations: 172.4 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.6614, allocations: 384 / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.6614, allocations: 8.375 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.6616, allocations: 69.91 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.6616, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.6616, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.6616, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.474e-05/0.6617, allocations: 23.98 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004497/0.6621, allocations: 268.8 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.847e-05/0.6623, allocations: 50.5 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.517e-05/0.6623, allocations: 20.98 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.6623, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.6625, allocations: 104.9 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.6625, allocations: 0 / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002938/0.6628, allocations: 143.4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.6629, allocations: 77.11 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.663, allocations: 121.8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.663, allocations: 25.7 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.6631, allocations: 88.14 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.6631, allocations: 15.8 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.544e-05/0.6632, allocations: 25.72 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.6634, allocations: 322.8 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.494e-05/0.6634, allocations: 12 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.754e-05/0.6635, allocations: 46.5 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.6636, allocations: 110 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.6636, allocations: 3.938 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000168/0.6638, allocations: 123.2 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.6638, allocations: 33.7 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.6638, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.6639, allocations: 4 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.294e-05/0.6639, allocations: 15.98 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.6639, allocations: 4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.151e-05/0.664, allocations: 4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.664, allocations: 4 kB / 1.021 GB, free: 14 MB / 0.7794 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.0001283/0.6642, allocations: 153.2 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.6642, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.6642, allocations: 8.375 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.6642, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.6642, allocations: 4 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.6642, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.6647, allocations: 404.4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.6647, allocations: 4.062 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.326e-05/0.6647, allocations: 7.984 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.6647, allocations: 3.938 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.6648, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.6648, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6648, allocations: 3.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/0.665, allocations: 237.2 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.6651, allocations: 85.02 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.6651, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.6652, allocations: 11.98 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.307e-05/0.6653, allocations: 15.92 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.6653, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.95e-05/0.6654, allocations: 87.28 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6654, allocations: 7.938 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002379/0.6656, allocations: 12 kB / 1.022 GB, free: 12.86 MB / 0.7794 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.000127/0.6658, allocations: 111.8 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002003/0.666, allocations: 112.1 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.666, allocations: 0 / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.6661, allocations: 91.39 kB / 1.022 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.6664, allocations: 18.33 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000381/0.6668, allocations: 165.6 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.6671, allocations: 0.6891 MB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.486e-05/0.6672, allocations: 11.84 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.73e-05/0.6672, allocations: 7.438 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.6672, allocations: 0 / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of Templates: time 0.003596/0.6708, allocations: 0.8244 MB / 1.024 GB, free: 10.76 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches