Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 71.75 kB / 20.97 MB, free: 3.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 169 kB / 24.28 MB, free: 276 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.015/1.015, allocations: 177.1 MB / 204.6 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.926/1.926, allocations: 377.8 MB / 0.6239 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.996e-06/2.996e-06, allocations: 0 / 0.8115 GB, free: 2.051 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.176e-05/3.476e-05, allocations: 13.72 kB / 0.8115 GB, free: 2.039 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001676/0.001711, allocations: 0.7027 MB / 0.8122 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.003008, allocations: 1.324 MB / 0.8135 GB, free: 20 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.186e-05/0.00306, allocations: 0 / 0.8135 GB, free: 20 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.003091, allocations: 3.938 kB / 0.8135 GB, free: 16 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 9.601e-05/0.003187, allocations: 22.36 kB / 0.8135 GB, free: 15.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.003829, allocations: 300.1 kB / 0.8138 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.004075, allocations: 256 kB / 0.8141 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.004177, allocations: 13 kB / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.004321, allocations: 139.9 kB / 0.8142 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.004449, allocations: 76.94 kB / 0.8143 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.004482, allocations: 24 kB / 0.8143 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.376e-05/0.004556, allocations: 35.92 kB / 0.8144 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.493e-05/0.004581, allocations: 13.47 kB / 0.8144 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.737e-05/0.004658, allocations: 75.92 kB / 0.8144 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.004876, allocations: 195.5 kB / 0.8146 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.004878, allocations: 0 / 0.8146 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.323e-06/0.004879, allocations: 0 / 0.8146 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.004884, allocations: 1.938 kB / 0.8146 GB, free: 14.89 MB / 0.7761 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.0008538/0.005738, allocations: 0.5091 MB / 0.8151 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.005783, allocations: 12.03 kB / 0.8151 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.18e-05/0.005875, allocations: 20.89 kB / 0.8152 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.005988, allocations: 120.5 kB / 0.8153 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.006013, allocations: 13.81 kB / 0.8153 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.889e-05/0.006042, allocations: 16.38 kB / 0.8153 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.006157, allocations: 62.92 kB / 0.8154 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.006165, allocations: 192 / 0.8154 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.006178, allocations: 5.469 kB / 0.8154 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.006188, allocations: 4.125 kB / 0.8154 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.407e-05/0.006222, allocations: 15.98 kB / 0.8154 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004405/0.006662, allocations: 376 kB / 0.8157 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.515e-05/0.006717, allocations: 31.58 kB / 0.8158 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.914e-05/0.006747, allocations: 20.62 kB / 0.8158 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-06/0.006754, allocations: 0 / 0.8158 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/0.006879, allocations: 101.7 kB / 0.8159 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.00688, allocations: 0 / 0.8159 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0002805/0.00716, allocations: 134.1 kB / 0.816 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.007202, allocations: 52.78 kB / 0.8161 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.007321, allocations: 191.1 kB / 0.8162 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.007352, allocations: 37.69 kB / 0.8163 GB, free: 13 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.007421, allocations: 142.8 kB / 0.8164 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.007446, allocations: 25.06 kB / 0.8164 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.007532, allocations: 71.33 kB / 0.8165 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.00766, allocations: 0.4923 MB / 0.817 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.007822, allocations: 166 kB / 0.8172 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.007999, allocations: 237.1 kB / 0.8174 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.008194, allocations: 243 kB / 0.8176 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.008197, allocations: 0.7812 kB / 0.8176 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004544/0.008652, allocations: 460.4 kB / 0.8181 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.496e-05/0.008707, allocations: 102.7 kB / 0.8181 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.008713, allocations: 4.062 kB / 0.8182 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.008727, allocations: 4 kB / 0.8182 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.056e-05/0.008748, allocations: 7.938 kB / 0.8182 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.008755, allocations: 5.109 kB / 0.8182 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.008982, allocations: 63.09 kB / 0.8182 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.009012, allocations: 23.98 kB / 0.8183 GB, free: 10.8 MB / 0.7761 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,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.457e-05/0.009106, allocations: 178.9 kB / 0.8184 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.009122, allocations: 15.89 kB / 0.8184 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.497e-05/0.009147, allocations: 12.42 kB / 0.8184 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.009151, allocations: 4.5 kB / 0.8185 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.009155, allocations: 0 / 0.8185 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.009159, allocations: 1.062 kB / 0.8185 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.84e-05/0.009257, allocations: 144.5 kB / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.009259, allocations: 0 / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-06/0.009266, allocations: 5.344 kB / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.009269, allocations: 3.938 kB / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.009276, allocations: 0 / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.009278, allocations: 1.094 kB / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.009279, allocations: 4 kB / 0.8186 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.009425, allocations: 144.3 kB / 0.8187 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-06/0.009434, allocations: 8.609 kB / 0.8188 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.009447, allocations: 3.938 kB / 0.8188 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.581e-05/0.009463, allocations: 6.391 kB / 0.8188 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.009501, allocations: 11.98 kB / 0.8188 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.009507, allocations: 4 kB / 0.8188 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.122e-05/0.009558, allocations: 142.3 kB / 0.8189 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.11e-07/0.009559, allocations: 0 / 0.8189 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001909/0.00975, allocations: 40 kB / 0.819 GB, free: 10.03 MB / 0.7761 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 (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.000144/0.009894, allocations: 117 kB / 0.8191 GB, free: 9.914 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003678/0.01026, allocations: 402.8 kB / 0.8194 GB, free: 9.461 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01026, allocations: 0 / 0.8194 GB, free: 9.461 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.639e-05/0.01031, allocations: 39.61 kB / 0.8195 GB, free: 9.418 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.01053, allocations: 26.59 kB / 0.8195 GB, free: 9.395 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003187/0.01084, allocations: 194.9 kB / 0.8197 GB, free: 9.168 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.868e-05/0.01088, allocations: 64.91 kB / 0.8198 GB, free: 9.086 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.762e-05/0.01091, allocations: 8.484 kB / 0.8198 GB, free: 9.078 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.01093, allocations: 21.53 kB / 0.8198 GB, free: 9.059 MB / 0.7761 GB Notification: Performance of SimCode: time 1.162e-06/0.01094, allocations: 4 kB / 0.8198 GB, free: 9.055 MB / 0.7761 GB Notification: Performance of Templates: time 0.004767/0.0157, allocations: 2.929 MB / 0.8227 GB, free: 6.211 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.284894359996542]