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.001021/0.001021, allocations: 81.95 kB / 21.47 MB, free: 3.027 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.001092/0.001092, allocations: 167.7 kB / 24.87 MB, free: 8.367 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 0.9508/0.9508, allocations: 177.1 MB / 205.3 MB, free: 4.5 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.98/1.98, allocations: 377.9 MB / 0.6247 GB, free: 8.945 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.154e-06/2.154e-06, allocations: 0 / 0.8128 GB, free: 42.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.008e-05/2.223e-05, allocations: 2.859 kB / 0.8128 GB, free: 42.6 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001489/0.001511, allocations: 0.6965 MB / 0.8135 GB, free: 42.21 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.002756, allocations: 1.319 MB / 0.8147 GB, free: 41.28 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.248e-05/0.002808, allocations: 0 / 0.8147 GB, free: 41.28 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.126e-05/0.00284, allocations: 7.859 kB / 0.8148 GB, free: 41.27 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 8.944e-05/0.002929, allocations: 19.03 kB / 0.8148 GB, free: 41.27 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.003452, allocations: 310.1 kB / 0.8151 GB, free: 41.11 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.003707, allocations: 254.8 kB / 0.8153 GB, free: 41.01 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 9.582e-05/0.003803, allocations: 13.08 kB / 0.8153 GB, free: 41 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.003934, allocations: 139.6 kB / 0.8155 GB, free: 40.95 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.004053, allocations: 84.25 kB / 0.8155 GB, free: 40.92 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.004084, allocations: 22.03 kB / 0.8156 GB, free: 40.92 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 6.095e-05/0.004145, allocations: 29.53 kB / 0.8156 GB, free: 40.92 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.374e-05/0.004169, allocations: 17.09 kB / 0.8156 GB, free: 40.91 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 6.276e-05/0.004232, allocations: 79.44 kB / 0.8157 GB, free: 40.88 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.004408, allocations: 196.9 kB / 0.8159 GB, free: 40.79 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.00441, allocations: 0 / 0.8159 GB, free: 40.79 MB / 0.7605 GB Notification: Performance of FrontEnd: time 7.22e-07/0.00441, allocations: 0 / 0.8159 GB, free: 40.79 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.446e-06/0.004414, allocations: 2.688 kB / 0.8159 GB, free: 40.79 MB / 0.7605 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.0003455/0.004759, allocations: 0.5066 MB / 0.8164 GB, free: 40.3 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.004791, allocations: 11.83 kB / 0.8164 GB, free: 40.3 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/0.004842, allocations: 22.55 kB / 0.8164 GB, free: 40.29 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.114e-05/0.004903, allocations: 117.9 kB / 0.8165 GB, free: 40.16 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.004919, allocations: 13.22 kB / 0.8165 GB, free: 40.15 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.004944, allocations: 22.23 kB / 0.8165 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.358e-05/0.005008, allocations: 55.91 kB / 0.8166 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.005015, allocations: 192 / 0.8166 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.005022, allocations: 6.562 kB / 0.8166 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.005027, allocations: 4.125 kB / 0.8166 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.898e-05/0.005046, allocations: 14.16 kB / 0.8166 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002742/0.00532, allocations: 359.3 kB / 0.817 GB, free: 39.8 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 3.625e-05/0.005356, allocations: 33.41 kB / 0.817 GB, free: 39.77 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.595e-05/0.005372, allocations: 16.41 kB / 0.817 GB, free: 39.75 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 5.5e-06/0.005378, allocations: 0 / 0.817 GB, free: 39.75 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.915e-05/0.005457, allocations: 101.2 kB / 0.8171 GB, free: 39.69 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=10): time 9.42e-07/0.005458, allocations: 2.844 kB / 0.8171 GB, free: 39.69 MB / 0.7605 GB Notification: Performance of matching and sorting (n=10): time 0.0001715/0.00563, allocations: 122.2 kB / 0.8172 GB, free: 39.64 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.005653, allocations: 54.59 kB / 0.8173 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.808e-05/0.005711, allocations: 187.5 kB / 0.8175 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.005733, allocations: 38.52 kB / 0.8175 GB, free: 39.36 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.005775, allocations: 147.5 kB / 0.8176 GB, free: 39.22 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 1.199e-05/0.005787, allocations: 21.94 kB / 0.8177 GB, free: 39.21 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.701e-05/0.005854, allocations: 72.73 kB / 0.8177 GB, free: 39.17 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 5.218e-05/0.005907, allocations: 0.4958 MB / 0.8182 GB, free: 38.67 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.491e-05/0.006001, allocations: 149.9 kB / 0.8184 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.006102, allocations: 218.3 kB / 0.8186 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.006217, allocations: 236.5 kB / 0.8188 GB, free: 38.18 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.006219, allocations: 0 / 0.8188 GB, free: 38.18 MB / 0.7605 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003/0.006519, allocations: 429 kB / 0.8192 GB, free: 37.93 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.006556, allocations: 106.9 kB / 0.8193 GB, free: 37.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.00656, allocations: 5.125 kB / 0.8193 GB, free: 37.82 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.006574, allocations: 3.062 kB / 0.8193 GB, free: 37.82 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.904e-05/0.006593, allocations: 6.844 kB / 0.8193 GB, free: 37.82 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.076e-06/0.006596, allocations: 0 / 0.8193 GB, free: 37.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.006794, allocations: 72.02 kB / 0.8194 GB, free: 37.8 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.006817, allocations: 14.72 kB / 0.8194 GB, free: 37.8 MB / 0.7605 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 5.772e-05/0.006875, allocations: 172.7 kB / 0.8196 GB, free: 37.64 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.006888, allocations: 19.47 kB / 0.8196 GB, free: 37.63 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.157e-05/0.006909, allocations: 11.16 kB / 0.8196 GB, free: 37.62 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.006912, allocations: 6.938 kB / 0.8196 GB, free: 37.62 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.006913, allocations: 0 / 0.8196 GB, free: 37.62 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.006917, allocations: 3.25 kB / 0.8196 GB, free: 37.62 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.021e-05/0.006977, allocations: 120.1 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.006979, allocations: 2.297 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-06/0.006985, allocations: 3.125 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.006986, allocations: 1 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-06/0.006991, allocations: 3.125 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.006993, allocations: 3.938 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.006994, allocations: 4.781 kB / 0.8197 GB, free: 37.49 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.773e-05/0.007081, allocations: 144 kB / 0.8199 GB, free: 37.39 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.007088, allocations: 6.953 kB / 0.8199 GB, free: 37.38 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-06/0.007097, allocations: 7.156 kB / 0.8199 GB, free: 37.38 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.403e-05/0.007111, allocations: 6.344 kB / 0.8199 GB, free: 37.38 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.348e-05/0.007135, allocations: 13.47 kB / 0.8199 GB, free: 37.37 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.007139, allocations: 2.812 kB / 0.8199 GB, free: 37.37 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 2.292e-05/0.007162, allocations: 141 kB / 0.82 GB, free: 37.25 MB / 0.7605 GB Notification: Performance of sort global known variables: time 9e-08/0.007162, allocations: 0 / 0.82 GB, free: 37.25 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0001639/0.007326, allocations: 44.16 kB / 0.8201 GB, free: 37.24 MB / 0.7605 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 7.876e-05/0.007404, allocations: 106 kB / 0.8202 GB, free: 37.15 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.000222/0.007626, allocations: 391 kB / 0.8206 GB, free: 36.84 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.007628, allocations: 0 / 0.8206 GB, free: 36.84 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 2.731e-05/0.007655, allocations: 35.14 kB / 0.8206 GB, free: 36.82 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.007815, allocations: 25.56 kB / 0.8206 GB, free: 36.82 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001976/0.008013, allocations: 187 kB / 0.8208 GB, free: 36.66 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.93e-05/0.008032, allocations: 64.12 kB / 0.8209 GB, free: 36.59 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 1.996e-05/0.008052, allocations: 6.094 kB / 0.8209 GB, free: 36.59 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.008164, allocations: 120.4 kB / 0.821 GB, free: 36.52 MB / 0.7605 GB Notification: Performance of SimCode: time 8.12e-07/0.008165, allocations: 2.906 kB / 0.821 GB, free: 36.52 MB / 0.7605 GB Notification: Performance of Templates: time 0.004002/0.01217, allocations: 3.245 MB / 0.8241 GB, free: 36.26 MB / 0.7605 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.333593238145113]