Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.001854/0.001854, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.002213/0.002213, allocations: 165.7 kB / 23.55 MB, free: 0.8906 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.488/1.488, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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 2.882/2.882, allocations: 377.8 MB / 0.6232 GB, free: 8.516 MB / 0.5886 GB " [Timeout remaining time 176] 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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.716e-06/2.716e-06, allocations: 0.875 kB / 0.8109 GB, free: 2.055 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.418e-05/3.689e-05, allocations: 6.25 kB / 0.8109 GB, free: 2.047 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002002/0.002039, allocations: 0.7732 MB / 0.8116 GB, free: 1.289 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001833/0.003871, allocations: 1.175 MB / 0.8128 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.881e-05/0.00392, allocations: 0 / 0.8128 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.418e-05/0.003954, allocations: 3.938 kB / 0.8128 GB, free: 100 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 8.742e-05/0.004042, allocations: 16.7 kB / 0.8128 GB, free: 84 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.00459, allocations: 137.2 kB / 0.8129 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.004837, allocations: 127.7 kB / 0.8131 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.667e-05/0.004934, allocations: 13.58 kB / 0.8131 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.005098, allocations: 75.88 kB / 0.8131 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.005207, allocations: 35.94 kB / 0.8132 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.00524, allocations: 12 kB / 0.8132 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.101e-05/0.005311, allocations: 25.23 kB / 0.8132 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.29e-05/0.005344, allocations: 19.91 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.449e-05/0.005419, allocations: 27.98 kB / 0.8133 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.005683, allocations: 143.6 kB / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.005686, allocations: 1.594 kB / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.92e-07/0.005687, allocations: 0 / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.005691, allocations: 0 / 0.8134 GB, free: 15.48 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.0007555/0.006447, allocations: 348.5 kB / 0.8137 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.006491, allocations: 8.562 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.305e-05/0.006564, allocations: 16.83 kB / 0.8138 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.006721, allocations: 123.3 kB / 0.8139 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.006741, allocations: 4.375 kB / 0.8139 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.006772, allocations: 12.31 kB / 0.8139 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.007079, allocations: 78.86 kB / 0.814 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.00709, allocations: 1.312 kB / 0.814 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.007105, allocations: 4.375 kB / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.007111, allocations: 384 / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.00743, allocations: 74.39 kB / 0.814 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.007943, allocations: 252.5 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.008162, allocations: 60.22 kB / 0.8143 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.008332, allocations: 40.92 kB / 0.8144 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.008361, allocations: 5.859 kB / 0.8144 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004731/0.008834, allocations: 95.3 kB / 0.8145 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.133e-06/0.008835, allocations: 0 / 0.8145 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0007178/0.009553, allocations: 176.6 kB / 0.8146 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.009604, allocations: 51.41 kB / 0.8147 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.009733, allocations: 121.7 kB / 0.8148 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.009771, allocations: 29.7 kB / 0.8148 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.148e-05/0.009862, allocations: 106.1 kB / 0.8149 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.009883, allocations: 7.906 kB / 0.8149 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.12e-05/0.009964, allocations: 37.7 kB / 0.815 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.01013, allocations: 314.8 kB / 0.8153 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.01039, allocations: 94.14 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.01067, allocations: 110.1 kB / 0.8155 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/0.01108, allocations: 146.7 kB / 0.8156 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01108, allocations: 4 kB / 0.8156 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006489/0.01173, allocations: 254.6 kB / 0.8159 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.01178, allocations: 33.69 kB / 0.8159 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.01178, allocations: 0.6875 kB / 0.8159 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.0118, allocations: 4 kB / 0.8159 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.01195, allocations: 24.81 kB / 0.8159 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.01196, allocations: 7.594 kB / 0.8159 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.0122, allocations: 43.89 kB / 0.816 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.01222, allocations: 4 kB / 0.816 GB, free: 12.63 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001199/0.01234, allocations: 113.8 kB / 0.8161 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.01237, allocations: 19.83 kB / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.529e-05/0.01241, allocations: 12.42 kB / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.01241, allocations: 0 / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.01242, allocations: 2.031 kB / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.01242, allocations: 0 / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.01257, allocations: 125.2 kB / 0.8162 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.01257, allocations: 0 / 0.8162 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.01269, allocations: 21.22 kB / 0.8163 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.01269, allocations: 0 / 0.8163 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.01271, allocations: 11.94 kB / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.01271, allocations: 5.125 kB / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01271, allocations: 0 / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004373/0.01315, allocations: 150.1 kB / 0.8164 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-06/0.01316, allocations: 5.031 kB / 0.8164 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.01318, allocations: 3.938 kB / 0.8164 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.481e-05/0.01327, allocations: 20.84 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.837e-05/0.01334, allocations: 4 kB / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.01335, allocations: 5.734 kB / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.287e-05/0.01343, allocations: 91.28 kB / 0.8165 GB, free: 12 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01343, allocations: 0 / 0.8165 GB, free: 12 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002396/0.01367, allocations: 27.98 kB / 0.8166 GB, free: 11.97 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001717/0.01384, allocations: 96.59 kB / 0.8167 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005626/0.0144, allocations: 206.3 kB / 0.8169 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.0144, allocations: 2.375 kB / 0.8169 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.01459, allocations: 47.95 kB / 0.8169 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.01483, allocations: 11.98 kB / 0.8169 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000423/0.01525, allocations: 170.1 kB / 0.8171 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.392e-05/0.01534, allocations: 75.33 kB / 0.8172 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.628e-05/0.01538, allocations: 2 kB / 0.8172 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.01541, allocations: 12.5 kB / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of SimCode: time 4.31e-07/0.01541, allocations: 0 / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of Templates: time 0.005201/0.02061, allocations: 1.737 MB / 0.8189 GB, free: 9.613 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.858436197042465]