Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.001501/0.001501, allocations: 80.75 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.001781/0.001781, allocations: 181 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 0.9781/0.9781, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.364/2.364, allocations: 438.8 MB / 0.6827 GB, free: 13.59 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.959e-05/2.154e-05, allocations: 4.562 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001276/0.001297, allocations: 0.8285 MB / 0.8394 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.002834, allocations: 1.341 MB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.893e-05/0.002883, allocations: 8 kB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.079e-05/0.002914, allocations: 11.86 kB / 0.8407 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.669e-05/0.003001, allocations: 19.8 kB / 0.8408 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.00352, allocations: 307.3 kB / 0.841 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.003748, allocations: 303.4 kB / 0.8413 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.094e-05/0.003839, allocations: 30.2 kB / 0.8414 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.004002, allocations: 163.8 kB / 0.8415 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.004133, allocations: 83.78 kB / 0.8416 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.518e-05/0.004168, allocations: 28 kB / 0.8416 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.028e-05/0.004238, allocations: 39.98 kB / 0.8417 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.736e-05/0.004266, allocations: 19.91 kB / 0.8417 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.157e-05/0.004337, allocations: 87.86 kB / 0.8418 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.004535, allocations: 223.3 kB / 0.842 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.004537, allocations: 0 / 0.842 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of FrontEnd: time 3.81e-07/0.004538, allocations: 4 kB / 0.842 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.116e-06/0.004541, allocations: 4 kB / 0.842 GB, free: 10.7 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0003797/0.00492, allocations: 441.4 kB / 0.8424 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.004956, allocations: 8.625 kB / 0.8424 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.004997, allocations: 20.92 kB / 0.8424 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.00515, allocations: 146.2 kB / 0.8426 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.005169, allocations: 16.38 kB / 0.8426 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.005194, allocations: 16.38 kB / 0.8426 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.91e-05/0.005283, allocations: 90.22 kB / 0.8427 GB, free: 9.898 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.005292, allocations: 7.969 kB / 0.8427 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.005302, allocations: 8 kB / 0.8427 GB, free: 9.883 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.005306, allocations: 4 kB / 0.8427 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.782e-05/0.005334, allocations: 19.98 kB / 0.8427 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003033/0.005637, allocations: 259.9 kB / 0.843 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.005755, allocations: 42.56 kB / 0.843 GB, free: 9.539 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.986e-05/0.005775, allocations: 16.84 kB / 0.843 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-06/0.00578, allocations: 0 / 0.843 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.106e-05/0.005871, allocations: 103.1 kB / 0.8431 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 8.52e-07/0.005872, allocations: 0 / 0.8431 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0001537/0.006026, allocations: 105.6 kB / 0.8432 GB, free: 9.301 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.006058, allocations: 63.41 kB / 0.8433 GB, free: 9.227 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.513e-05/0.006133, allocations: 162 kB / 0.8435 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.006158, allocations: 33.7 kB / 0.8435 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.006209, allocations: 116.5 kB / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.006227, allocations: 27.78 kB / 0.8436 GB, free: 8.875 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.696e-05/0.006304, allocations: 73.64 kB / 0.8437 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.443e-05/0.006378, allocations: 322.8 kB / 0.844 GB, free: 8.473 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.006483, allocations: 149 kB / 0.8441 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.006605, allocations: 195 kB / 0.8443 GB, free: 8.078 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.006752, allocations: 225.4 kB / 0.8445 GB, free: 7.82 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.006753, allocations: 0 / 0.8445 GB, free: 7.82 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000284/0.007037, allocations: 375.6 kB / 0.8449 GB, free: 7.41 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.251e-05/0.00709, allocations: 101.1 kB / 0.845 GB, free: 7.293 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.007095, allocations: 192 / 0.845 GB, free: 7.293 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.007107, allocations: 11.94 kB / 0.845 GB, free: 7.281 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.703e-05/0.007144, allocations: 8 kB / 0.845 GB, free: 7.273 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.007151, allocations: 15.91 kB / 0.845 GB, free: 7.258 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.007319, allocations: 59.84 kB / 0.8451 GB, free: 7.199 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.007341, allocations: 23.92 kB / 0.8451 GB, free: 7.176 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.251e-05/0.007423, allocations: 133.8 kB / 0.8452 GB, free: 7.035 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.007436, allocations: 12 kB / 0.8453 GB, free: 7.023 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.007459, allocations: 12.77 kB / 0.8453 GB, free: 7.012 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.007464, allocations: 7.938 kB / 0.8453 GB, free: 7.004 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.007466, allocations: 0 / 0.8453 GB, free: 7.004 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.00747, allocations: 0 / 0.8453 GB, free: 7.004 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.625e-05/0.007556, allocations: 101.8 kB / 0.8454 GB, free: 6.887 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.007557, allocations: 3.938 kB / 0.8454 GB, free: 6.883 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.04e-05/0.007577, allocations: 8 kB / 0.8454 GB, free: 6.875 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.007578, allocations: 0 / 0.8454 GB, free: 6.875 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.007586, allocations: 4 kB / 0.8454 GB, free: 6.871 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.007587, allocations: 4 kB / 0.8454 GB, free: 6.867 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.007588, allocations: 4 kB / 0.8454 GB, free: 6.863 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.638e-05/0.007685, allocations: 113 kB / 0.8455 GB, free: 6.734 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.666e-06/0.007693, allocations: 7.953 kB / 0.8455 GB, free: 6.727 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.007705, allocations: 4 kB / 0.8455 GB, free: 6.723 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.588e-05/0.007721, allocations: 7.984 kB / 0.8455 GB, free: 6.715 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.007e-05/0.007751, allocations: 11.92 kB / 0.8455 GB, free: 6.703 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.007757, allocations: 7.938 kB / 0.8455 GB, free: 6.695 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.195e-05/0.007779, allocations: 28.83 kB / 0.8456 GB, free: 6.664 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007779, allocations: 0 / 0.8456 GB, free: 6.664 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001538/0.007933, allocations: 55.94 kB / 0.8456 GB, free: 6.609 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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 9.398e-05/0.008027, allocations: 88.36 kB / 0.8457 GB, free: 6.512 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002449/0.008272, allocations: 396 kB / 0.8461 GB, free: 6.066 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.008275, allocations: 0 / 0.8461 GB, free: 6.066 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.477e-05/0.008309, allocations: 36.78 kB / 0.8461 GB, free: 6.027 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.008433, allocations: 34.06 kB / 0.8461 GB, free: 5.996 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002799/0.008713, allocations: 240.1 kB / 0.8464 GB, free: 5.734 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.176e-05/0.008744, allocations: 67.33 kB / 0.8464 GB, free: 5.648 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.711e-05/0.008772, allocations: 8.984 kB / 0.8464 GB, free: 5.641 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.008901, allocations: 99.33 kB / 0.8465 GB, free: 5.543 MB / 0.8073 GB Notification: Performance of SimCode: time 8.82e-07/0.008901, allocations: 3.938 kB / 0.8465 GB, free: 5.539 MB / 0.8073 GB Notification: Performance of Templates: time 0.004424/0.01333, allocations: 3.266 MB / 0.8497 GB, free: 2.34 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_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.4331603362225]