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.001155/0.001155, 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.001291/0.001291, 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 1.043/1.043, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.552/2.552, allocations: 438.8 MB / 0.6827 GB, free: 13.55 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.443e-06/1.443e-06, allocations: 3.938 kB / 0.8386 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.715e-05/1.86e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001401/0.001419, allocations: 0.8676 MB / 0.8395 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.002712, allocations: 1.345 MB / 0.8408 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.065e-05/0.002763, allocations: 0 / 0.8408 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.516e-05/0.002798, allocations: 15.8 kB / 0.8408 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.652e-05/0.002875, allocations: 23.75 kB / 0.8408 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.000562/0.003437, allocations: 311.3 kB / 0.8411 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.00368, allocations: 295.4 kB / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.516e-05/0.003766, allocations: 34.2 kB / 0.8414 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.003918, allocations: 167.7 kB / 0.8416 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.004044, allocations: 91.77 kB / 0.8417 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.004077, allocations: 24 kB / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.585e-05/0.004153, allocations: 32 kB / 0.8418 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.004177, allocations: 27.91 kB / 0.8418 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.617e-05/0.004243, allocations: 83.86 kB / 0.8419 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.004456, allocations: 227.4 kB / 0.8421 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.004457, allocations: 0 / 0.8421 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.81e-07/0.004458, allocations: 0 / 0.8421 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.004461, allocations: 0 / 0.8421 GB, free: 10.58 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.0003951/0.004857, allocations: 437.4 kB / 0.8425 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.004887, allocations: 8.625 kB / 0.8425 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.004933, allocations: 32.91 kB / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.005095, allocations: 139.7 kB / 0.8427 GB, free: 9.914 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.005114, allocations: 12.38 kB / 0.8427 GB, free: 9.902 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.787e-05/0.005142, allocations: 28.34 kB / 0.8427 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.362e-05/0.005236, allocations: 88 kB / 0.8428 GB, free: 9.781 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.005243, allocations: 4 kB / 0.8428 GB, free: 9.777 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.005251, allocations: 4 kB / 0.8428 GB, free: 9.773 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.005256, allocations: 0 / 0.8428 GB, free: 9.773 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.722e-05/0.005294, allocations: 23.92 kB / 0.8428 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003122/0.005606, allocations: 263.8 kB / 0.8431 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.005721, allocations: 50.53 kB / 0.8431 GB, free: 9.418 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.18e-05/0.005743, allocations: 20.84 kB / 0.8431 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.875e-06/0.005751, allocations: 4 kB / 0.8431 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/0.005853, allocations: 98.69 kB / 0.8432 GB, free: 9.285 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.005855, allocations: 4 kB / 0.8432 GB, free: 9.281 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0001505/0.006005, allocations: 109.6 kB / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.006033, allocations: 51.41 kB / 0.8434 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.696e-05/0.00611, allocations: 164.5 kB / 0.8435 GB, free: 8.934 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.006137, allocations: 33.7 kB / 0.8436 GB, free: 8.895 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.523e-05/0.006182, allocations: 112.5 kB / 0.8437 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.006203, allocations: 31.78 kB / 0.8437 GB, free: 8.75 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-05/0.006291, allocations: 65.64 kB / 0.8438 GB, free: 8.68 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.052e-05/0.006362, allocations: 322.8 kB / 0.8441 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.006466, allocations: 145.1 kB / 0.8442 GB, free: 8.195 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.006586, allocations: 207.6 kB / 0.8444 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.006727, allocations: 220.9 kB / 0.8446 GB, free: 7.699 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.006729, allocations: 0 / 0.8446 GB, free: 7.699 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002753/0.007005, allocations: 382 kB / 0.845 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.914e-05/0.007054, allocations: 101.1 kB / 0.8451 GB, free: 7.168 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.00706, allocations: 4 kB / 0.8451 GB, free: 7.164 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.007073, allocations: 3.938 kB / 0.8451 GB, free: 7.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.697e-05/0.00711, allocations: 12 kB / 0.8451 GB, free: 7.148 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.007115, allocations: 7.984 kB / 0.8451 GB, free: 7.141 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.007295, allocations: 59.84 kB / 0.8452 GB, free: 7.082 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.00732, allocations: 15.98 kB / 0.8452 GB, free: 7.066 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 7.7e-05/0.007397, allocations: 141.8 kB / 0.8453 GB, free: 6.918 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.007411, allocations: 11.98 kB / 0.8453 GB, free: 6.906 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.007433, allocations: 12.78 kB / 0.8454 GB, free: 6.895 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.007437, allocations: 11.88 kB / 0.8454 GB, free: 6.883 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.007439, allocations: 0 / 0.8454 GB, free: 6.883 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.007443, allocations: 0 / 0.8454 GB, free: 6.883 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.951e-05/0.007522, allocations: 97.78 kB / 0.8455 GB, free: 6.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.007523, allocations: 0 / 0.8455 GB, free: 6.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.333e-05/0.007547, allocations: 11.94 kB / 0.8455 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.007549, allocations: 8 kB / 0.8455 GB, free: 6.75 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.007557, allocations: 7.984 kB / 0.8455 GB, free: 6.742 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.007558, allocations: 0 / 0.8455 GB, free: 6.742 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.007559, allocations: 0 / 0.8455 GB, free: 6.742 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.996e-05/0.007649, allocations: 109 kB / 0.8456 GB, free: 6.617 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-06/0.007657, allocations: 7.953 kB / 0.8456 GB, free: 6.609 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.007669, allocations: 8 kB / 0.8456 GB, free: 6.602 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.483e-05/0.007684, allocations: 3.984 kB / 0.8456 GB, free: 6.598 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.572e-05/0.00771, allocations: 11.98 kB / 0.8456 GB, free: 6.586 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.007717, allocations: 7.938 kB / 0.8456 GB, free: 6.578 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.1e-05/0.007738, allocations: 25.77 kB / 0.8457 GB, free: 6.551 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007738, allocations: 4 kB / 0.8457 GB, free: 6.547 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001552/0.007894, allocations: 59.88 kB / 0.8457 GB, free: 6.488 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 8.91e-05/0.007983, allocations: 88.36 kB / 0.8458 GB, free: 6.391 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002576/0.00824, allocations: 395.5 kB / 0.8462 GB, free: 5.949 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.008244, allocations: 0 / 0.8462 GB, free: 5.949 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.657e-05/0.00828, allocations: 43.77 kB / 0.8462 GB, free: 5.906 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.008402, allocations: 28.34 kB / 0.8462 GB, free: 5.879 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002701/0.008672, allocations: 229.3 kB / 0.8465 GB, free: 5.625 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.245e-05/0.008705, allocations: 67.33 kB / 0.8465 GB, free: 5.539 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.58e-05/0.00873, allocations: 12.97 kB / 0.8465 GB, free: 5.527 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.008863, allocations: 103.3 kB / 0.8466 GB, free: 5.426 MB / 0.8073 GB Notification: Performance of SimCode: time 5.41e-07/0.008863, allocations: 0 / 0.8466 GB, free: 5.426 MB / 0.8073 GB Notification: Performance of Templates: time 0.004325/0.01319, allocations: 3.263 MB / 0.8498 GB, free: 2.227 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 -s gbode -gbm=radauIIA3 -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.601690137758851]