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.0009986/0.0009986, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.0009147/0.0009147, allocations: 161 kB / 23.82 MB, free: 0.7539 MB / 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.004/1.004, allocations: 177.1 MB / 204.2 MB, free: 5.602 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.839/1.839, allocations: 377.8 MB / 0.6236 GB, free: 8.547 MB / 0.5886 GB " [Timeout remaining time 178] 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.785e-06/2.785e-06, allocations: 0 / 0.8116 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.728e-05/3.007e-05, allocations: 4.984 kB / 0.8116 GB, free: 1.684 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001374/0.001404, allocations: 0.7139 MB / 0.8123 GB, free: 0.9883 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.002781, allocations: 1.32 MB / 0.8135 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.066e-05/0.002822, allocations: 0 / 0.8135 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.887e-05/0.002851, allocations: 8.578 kB / 0.8136 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.091e-05/0.002922, allocations: 23.8 kB / 0.8136 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.003519, allocations: 293.7 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.00373, allocations: 260.9 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.225e-05/0.003813, allocations: 16.16 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.003936, allocations: 135.8 kB / 0.8142 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.004051, allocations: 77.44 kB / 0.8143 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.248e-05/0.004084, allocations: 20 kB / 0.8143 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.252e-05/0.004146, allocations: 35.92 kB / 0.8144 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.004168, allocations: 15.92 kB / 0.8144 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.013e-05/0.004239, allocations: 80.39 kB / 0.8145 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001822/0.004421, allocations: 188.1 kB / 0.8146 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.004423, allocations: 0 / 0.8146 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.12e-07/0.004423, allocations: 4.469 kB / 0.8146 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.004427, allocations: 5.125 kB / 0.8147 GB, free: 14.52 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.000431/0.004858, allocations: 0.5092 MB / 0.8152 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.004894, allocations: 12.03 kB / 0.8152 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.057e-05/0.004964, allocations: 21.41 kB / 0.8152 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.942e-05/0.005044, allocations: 117.9 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.005065, allocations: 12.38 kB / 0.8153 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.005087, allocations: 12.38 kB / 0.8153 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.581e-05/0.005183, allocations: 66.92 kB / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.005191, allocations: 1.344 kB / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-06/0.0052, allocations: 384 / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.005208, allocations: 8.125 kB / 0.8154 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.69e-05/0.005235, allocations: 16.89 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003668/0.005602, allocations: 367.6 kB / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.119e-05/0.005653, allocations: 39.05 kB / 0.8158 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.208e-05/0.005675, allocations: 12.59 kB / 0.8158 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-06/0.005681, allocations: 4.078 kB / 0.8158 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001027/0.005784, allocations: 97.92 kB / 0.8159 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.005785, allocations: 0 / 0.8159 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0004795/0.006265, allocations: 134.6 kB / 0.816 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.006296, allocations: 55.39 kB / 0.8161 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.006386, allocations: 195.7 kB / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.006412, allocations: 31.08 kB / 0.8163 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.753e-05/0.006469, allocations: 146.8 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.006488, allocations: 27.89 kB / 0.8165 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.598e-05/0.006564, allocations: 71.33 kB / 0.8165 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.006669, allocations: 0.4937 MB / 0.817 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.006814, allocations: 165 kB / 0.8172 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.006975, allocations: 230.8 kB / 0.8174 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.00714, allocations: 241.8 kB / 0.8176 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.007141, allocations: 0 / 0.8176 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003909/0.007532, allocations: 468.9 kB / 0.8181 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.007578, allocations: 101.1 kB / 0.8182 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.007583, allocations: 4.078 kB / 0.8182 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.007596, allocations: 7.922 kB / 0.8182 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.613e-05/0.007612, allocations: 4 kB / 0.8182 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.007619, allocations: 9.672 kB / 0.8182 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.007854, allocations: 60.78 kB / 0.8183 GB, free: 10.46 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.007893, allocations: 15.98 kB / 0.8183 GB, free: 10.44 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 8.694e-05/0.00798, allocations: 176 kB / 0.8184 GB, free: 10.26 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.008001, allocations: 28.72 kB / 0.8185 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.008024, allocations: 8.438 kB / 0.8185 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.008027, allocations: 5.281 kB / 0.8185 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.008031, allocations: 0 / 0.8185 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.008034, allocations: 0 / 0.8185 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.382e-05/0.008118, allocations: 140.5 kB / 0.8186 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.008119, allocations: 0.8438 kB / 0.8186 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.095e-06/0.008127, allocations: 4 kB / 0.8186 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.00813, allocations: 6.625 kB / 0.8186 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.008137, allocations: 7.922 kB / 0.8186 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.008139, allocations: 4 kB / 0.8186 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.00814, allocations: 0 / 0.8186 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.008265, allocations: 140.3 kB / 0.8188 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-06/0.008274, allocations: 11.94 kB / 0.8188 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.008286, allocations: 3.938 kB / 0.8188 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.364e-05/0.0083, allocations: 2.75 kB / 0.8188 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.00833, allocations: 11.98 kB / 0.8188 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.008336, allocations: 4 kB / 0.8188 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.997e-05/0.008376, allocations: 141.4 kB / 0.8189 GB, free: 9.703 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.008376, allocations: 0 / 0.8189 GB, free: 9.703 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001629/0.008539, allocations: 47.98 kB / 0.819 GB, free: 9.656 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.0001061/0.008645, allocations: 104.1 kB / 0.8191 GB, free: 9.547 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003104/0.008955, allocations: 407.9 kB / 0.8195 GB, free: 9.09 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.008957, allocations: 4 kB / 0.8195 GB, free: 9.086 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.64e-05/0.008993, allocations: 32.78 kB / 0.8195 GB, free: 9.051 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.009158, allocations: 25.67 kB / 0.8195 GB, free: 9.027 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002617/0.009419, allocations: 200 kB / 0.8197 GB, free: 8.797 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.203e-05/0.009451, allocations: 67.77 kB / 0.8198 GB, free: 8.711 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.173e-05/0.009473, allocations: 6.156 kB / 0.8198 GB, free: 8.707 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.009493, allocations: 20.44 kB / 0.8198 GB, free: 8.688 MB / 0.7761 GB Notification: Performance of SimCode: time 4.91e-07/0.009494, allocations: 0 / 0.8198 GB, free: 8.688 MB / 0.7761 GB Notification: Performance of Templates: time 0.004299/0.01379, allocations: 3.203 MB / 0.8229 GB, free: 5.574 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.089119835291058]