Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 99.55 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.00159/0.00159, 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.56/1.56, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.648/2.648, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003917/0.0003918, allocations: 8 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8475/0.8479, allocations: 153.6 MB / 1.021 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0009327/0.8489, allocations: 432.9 kB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001688/0.8506, allocations: 1.187 MB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.975e-05/0.8507, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.416e-05/0.8508, allocations: 3.938 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.873e-05/0.8509, allocations: 19.95 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008942/0.8518, allocations: 284.9 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.852, allocations: 123.8 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.8521, allocations: 12.16 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.8522, allocations: 91.8 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.8524, allocations: 63.84 kB / 1.023 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.337e-05/0.8524, allocations: 16 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.458e-05/0.8525, allocations: 27.97 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.8526, allocations: 7.938 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.404e-05/0.8526, allocations: 49.7 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.8529, allocations: 145.6 kB / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.8529, allocations: 0 / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.615e-06/0.8529, allocations: 0 / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.8529, allocations: 0 / 1.023 GB, free: 14.69 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.0005959/0.8535, allocations: 460.1 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.8535, allocations: 15.98 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.312e-05/0.8536, allocations: 15.91 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.8538, allocations: 175 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.643e-05/0.8538, allocations: 12 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.8539, allocations: 15.94 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.854, allocations: 61.62 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.854, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.8541, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.8541, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.983e-05/0.8541, allocations: 27.92 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006204/0.8548, allocations: 412.5 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.463e-05/0.8549, allocations: 34.58 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.265e-06/0.8549, allocations: 0 / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.8551, allocations: 99.28 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.774e-06/0.8551, allocations: 7.938 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003273/0.8554, allocations: 141.5 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.8555, allocations: 55.41 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.8556, allocations: 131.6 kB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.8556, allocations: 33.7 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.313e-05/0.8557, allocations: 108.1 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.852e-05/0.8558, allocations: 11.81 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/0.8558, allocations: 8 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.8559, allocations: 322.8 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.8561, allocations: 91.91 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.8563, allocations: 135.3 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.8565, allocations: 173.8 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.8565, allocations: 0 / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005851/0.8571, allocations: 379.4 kB / 1.026 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/0.8572, allocations: 101.1 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.8572, allocations: 4 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.8573, allocations: 0 / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.227e-05/0.8573, allocations: 11.92 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.8573, allocations: 4.562 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005746/0.8579, allocations: 118.3 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.858, allocations: 19.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,$PRE.booPul3.y,booPul3.y,logicalSwitch.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.0001279/0.8581, allocations: 133.8 kB / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.6e-05/0.8581, allocations: 19.78 kB / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.8582, allocations: 8.375 kB / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8582, allocations: 0 / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.8582, allocations: 0 / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.8582, allocations: 0 / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.8583, allocations: 193.6 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.8583, allocations: 0 / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-05/0.8584, allocations: 4 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.8584, allocations: 0 / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.8584, allocations: 0 / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.8584, allocations: 4 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.8584, allocations: 8 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001953/0.8586, allocations: 140.9 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.8587, allocations: 85.02 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.8587, allocations: 3.938 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.414e-05/0.8587, allocations: 3.984 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.8587, allocations: 8 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.8588, allocations: 7.984 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.745e-05/0.8588, allocations: 99.27 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8588, allocations: 0 / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002654/0.8591, allocations: 44 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,booPul3.y,logicalSwitch.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.0001785/0.8593, allocations: 111.2 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004252/0.8597, allocations: 354.1 kB / 1.027 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.8597, allocations: 0 / 1.027 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.861e-05/0.8598, allocations: 44.3 kB / 1.027 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.86, allocations: 20.25 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.0003846/0.8604, allocations: 211.4 kB / 1.028 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.8607, allocations: 0.7004 MB / 1.028 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.044e-05/0.8607, allocations: 8.438 kB / 1.028 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.8608, allocations: 11.44 kB / 1.028 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8608, allocations: 0 / 1.028 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of Templates: time 0.005395/0.8662, allocations: 2.389 MB / 1.031 GB, free: 6.523 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches