Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.OBC.CDL.Logical.Validation.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.000947/0.000947, allocations: 177.3 kB / 15.94 MB, free: 228 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.486/1.486, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.727/2.727, allocations: 436.5 MB / 0.7104 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003801, allocations: 8 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8407/0.8411, allocations: 153.7 MB / 1.021 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or3): time 0.0009565/0.8421, allocations: 421 kB / 1.021 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00157/0.8437, allocations: 1.199 MB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.857e-05/0.8438, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.939e-05/0.8438, allocations: 7.922 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.755e-05/0.8439, allocations: 19.91 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000836/0.8448, allocations: 275.7 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.845, allocations: 135.8 kB / 1.023 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.8451, allocations: 12.17 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.8452, allocations: 83.86 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.8454, allocations: 71.77 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.8454, allocations: 12 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.157e-05/0.8455, allocations: 27.98 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.517e-05/0.8455, allocations: 7.984 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.793e-05/0.8456, allocations: 53.64 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.8459, allocations: 153.6 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.8459, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.665e-06/0.8459, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.8459, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 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.0006015/0.8465, allocations: 456.2 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.8465, allocations: 11.98 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.075e-05/0.8466, allocations: 15.91 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.8468, allocations: 167 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.8468, allocations: 4 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/0.8469, allocations: 27.98 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.847, allocations: 61.56 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.8471, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.8471, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.8471, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.318e-05/0.8471, allocations: 19.98 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006316/0.8478, allocations: 420.5 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.293e-05/0.8479, allocations: 38.5 kB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.8479, allocations: 3.984 kB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.8481, allocations: 103.3 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.512e-06/0.8481, allocations: 0 / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003212/0.8484, allocations: 137.7 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.8485, allocations: 67.34 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.8486, allocations: 127.9 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.8486, allocations: 37.7 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.195e-05/0.8487, allocations: 100 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.8487, allocations: 19.88 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.528e-05/0.8488, allocations: 8 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.8489, allocations: 318.8 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.8491, allocations: 91.91 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.8493, allocations: 135.8 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.8495, allocations: 165.1 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.8495, allocations: 0 / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005484/0.8501, allocations: 383.5 kB / 1.026 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.71e-05/0.8502, allocations: 99.59 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.8502, allocations: 0 / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.8502, allocations: 4 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.349e-05/0.8502, allocations: 4 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.8502, allocations: 4 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.8508, allocations: 127.9 kB / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.8508, allocations: 15.98 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,or1.y,$PRE.booPul3.y,booPul3.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0001262/0.851, allocations: 129.8 kB / 1.026 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.851, allocations: 11.89 kB / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.851, allocations: 8.375 kB / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.851, allocations: 4 kB / 1.026 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.8511, allocations: 4 kB / 1.026 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.8511, allocations: 0 / 1.026 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.8512, allocations: 193.6 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8513, allocations: 0 / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.157e-06/0.8513, allocations: 0 / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.8513, allocations: 4 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.8513, allocations: 4 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.8513, allocations: 7.938 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.8513, allocations: 0 / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.8515, allocations: 144.9 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.8515, allocations: 85.14 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.8516, allocations: 4 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.414e-05/0.8516, allocations: 7.938 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.8516, allocations: 7.984 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.8516, allocations: 7.984 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.934e-05/0.8517, allocations: 101.8 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8517, allocations: 0 / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002484/0.852, allocations: 40 kB / 1.027 GB, free: 10.42 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,or1.y,booPul3.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 0.0001629/0.8521, allocations: 103.2 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000437/0.8526, allocations: 366 kB / 1.027 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8526, allocations: 4 kB / 1.027 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.843e-05/0.8527, allocations: 31.98 kB / 1.027 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.8529, allocations: 24.36 kB / 1.027 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.8533, allocations: 211.3 kB / 1.028 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.8536, allocations: 0.7043 MB / 1.028 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.057e-05/0.8536, allocations: 4.438 kB / 1.028 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.432e-05/0.8537, allocations: 15.44 kB / 1.028 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.8537, allocations: 0 / 1.028 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of Templates: time 0.005242/0.8589, allocations: 2.38 MB / 1.031 GB, free: 6.523 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Or3.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches