Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009852/0.0009852, allocations: 80.81 kB / 19.94 MB, free: 4.547 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.001144/0.001144, allocations: 177 kB / 23.36 MB, free: 1.133 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.014/1.014, allocations: 177.1 MB / 203.8 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.433/2.433, allocations: 438.8 MB / 0.6826 GB, free: 13.56 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 0.8387 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.63e-05/1.804e-05, allocations: 7.938 kB / 0.8387 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001648/0.001666, allocations: 0.8278 MB / 0.8395 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.003389, allocations: 1.205 MB / 0.8407 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.47e-05/0.003434, allocations: 0 / 0.8407 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.689e-05/0.003461, allocations: 3.938 kB / 0.8407 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.784e-05/0.003538, allocations: 19.86 kB / 0.8407 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.003882, allocations: 135.5 kB / 0.8408 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.004029, allocations: 131.7 kB / 0.841 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.081e-05/0.00411, allocations: 15.97 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.004221, allocations: 63.89 kB / 0.841 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 8.68e-05/0.004307, allocations: 47.92 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.004327, allocations: 8 kB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.5e-05/0.004392, allocations: 23.98 kB / 0.8411 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.004411, allocations: 7.938 kB / 0.8411 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.004449, allocations: 47.95 kB / 0.8412 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.004575, allocations: 103.6 kB / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.004577, allocations: 0 / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.92e-07/0.004578, allocations: 0 / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.004581, allocations: 0 / 0.8413 GB, free: 11.39 MB / 0.8073 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.0003527/0.004934, allocations: 314.4 kB / 0.8416 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.792e-05/0.004962, allocations: 8.031 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.416e-05/0.004996, allocations: 12.92 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.2e-05/0.005068, allocations: 113.7 kB / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.005078, allocations: 8.312 kB / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.005093, allocations: 16.36 kB / 0.8417 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.952e-05/0.005192, allocations: 74.86 kB / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.005199, allocations: 192 / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-06/0.005206, allocations: 384 / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.005211, allocations: 384 / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.505e-05/0.005236, allocations: 19.91 kB / 0.8418 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002188/0.005455, allocations: 176.2 kB / 0.842 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.581e-05/0.005491, allocations: 30.52 kB / 0.842 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.812e-05/0.005509, allocations: 12.94 kB / 0.842 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.00552, allocations: 0 / 0.842 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.417e-05/0.005594, allocations: 67.34 kB / 0.8421 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 8.11e-07/0.005595, allocations: 0 / 0.8421 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001122/0.005707, allocations: 69.73 kB / 0.8421 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.005732, allocations: 55.41 kB / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.005794, allocations: 130.2 kB / 0.8423 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.00581, allocations: 29.7 kB / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.039e-05/0.00584, allocations: 88.12 kB / 0.8424 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.005857, allocations: 15.89 kB / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.005898, allocations: 29.69 kB / 0.8425 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.127e-05/0.005969, allocations: 322.8 kB / 0.8428 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.715e-05/0.006016, allocations: 57.69 kB / 0.8428 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.731e-05/0.006063, allocations: 64.27 kB / 0.8429 GB, free: 9.531 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.643e-05/0.00613, allocations: 84.17 kB / 0.843 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.006131, allocations: 0 / 0.843 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001198/0.006251, allocations: 153 kB / 0.8431 GB, free: 9.266 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.006276, allocations: 37.69 kB / 0.8432 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.006281, allocations: 3.938 kB / 0.8432 GB, free: 9.219 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.006291, allocations: 0 / 0.8432 GB, free: 9.219 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-05/0.006356, allocations: 20.06 kB / 0.8432 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/0.006359, allocations: 3.984 kB / 0.8432 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.926e-05/0.006438, allocations: 27.88 kB / 0.8432 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.006452, allocations: 7.984 kB / 0.8432 GB, free: 9.16 MB / 0.8073 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 5.435e-05/0.006506, allocations: 117.8 kB / 0.8433 GB, free: 9.035 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.256e-06/0.006515, allocations: 4 kB / 0.8433 GB, free: 9.031 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.176e-05/0.006536, allocations: 24.3 kB / 0.8434 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.006538, allocations: 0 / 0.8434 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-06/0.006539, allocations: 0 / 0.8434 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.006542, allocations: 4 kB / 0.8434 GB, free: 9.008 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.66e-05/0.006598, allocations: 77.88 kB / 0.8434 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.006599, allocations: 0 / 0.8434 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.129e-05/0.006631, allocations: 11.98 kB / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.006632, allocations: 0 / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-06/0.006636, allocations: 0 / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.006637, allocations: 0 / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.006638, allocations: 7.938 kB / 0.8435 GB, free: 8.895 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.572e-05/0.006704, allocations: 81.05 kB / 0.8435 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-06/0.00671, allocations: 3.953 kB / 0.8435 GB, free: 8.793 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.228e-06/0.00672, allocations: 8 kB / 0.8436 GB, free: 8.785 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.085e-05/0.00674, allocations: 4.188 kB / 0.8436 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/0.006768, allocations: 11.92 kB / 0.8436 GB, free: 8.77 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.006774, allocations: 11.98 kB / 0.8436 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.377e-05/0.006788, allocations: 16.84 kB / 0.8436 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.006788, allocations: 0 / 0.8436 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000123/0.006911, allocations: 24 kB / 0.8436 GB, free: 8.715 MB / 0.8073 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 8.724e-05/0.006998, allocations: 84.34 kB / 0.8437 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001308/0.007129, allocations: 137.9 kB / 0.8438 GB, free: 8.465 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.007131, allocations: 4.062 kB / 0.8438 GB, free: 8.461 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.145e-05/0.007163, allocations: 28.83 kB / 0.8439 GB, free: 8.43 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.78e-05/0.00726, allocations: 14.17 kB / 0.8439 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000228/0.007488, allocations: 152.4 kB / 0.844 GB, free: 8.242 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.652e-05/0.007515, allocations: 59.3 kB / 0.8441 GB, free: 8.164 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.59e-05/0.007541, allocations: 11.98 kB / 0.8441 GB, free: 8.152 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.753e-05/0.007618, allocations: 67.36 kB / 0.8442 GB, free: 8.086 MB / 0.8073 GB Notification: Performance of SimCode: time 4.01e-07/0.007619, allocations: 0 / 0.8442 GB, free: 8.086 MB / 0.8073 GB Notification: Performance of Templates: time 0.00303/0.01065, allocations: 1.757 MB / 0.8459 GB, free: 6.363 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_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.318615184165537]