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.001023/0.001023, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001187/0.001187, allocations: 169 kB / 23.02 MB, free: 1.547 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.9893/0.9893, allocations: 177.1 MB / 203.4 MB, free: 5.582 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.173/2.173, allocations: 429.5 MB / 0.6732 GB, free: 4.059 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.313e-06/1.313e-06, allocations: 3.938 kB / 0.8782 GB, free: 6.324 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.019e-05, allocations: 5.391 kB / 0.8782 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001342/0.001362, allocations: 0.8402 MB / 0.879 GB, free: 5.5 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.00267, allocations: 1.342 MB / 0.8803 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.53e-05/0.002725, allocations: 4 kB / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.678e-05/0.002762, allocations: 13.05 kB / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.965e-05/0.002841, allocations: 23.73 kB / 0.8804 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006034/0.003445, allocations: 305.6 kB / 0.8806 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.003694, allocations: 296.5 kB / 0.8809 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.003799, allocations: 29.61 kB / 0.881 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.003963, allocations: 163.8 kB / 0.8811 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.00409, allocations: 96.98 kB / 0.8812 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.004127, allocations: 24 kB / 0.8812 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.812e-05/0.004195, allocations: 36 kB / 0.8813 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.004222, allocations: 24.88 kB / 0.8813 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.159e-05/0.004304, allocations: 87.86 kB / 0.8814 GB, free: 3.07 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.004532, allocations: 227.3 kB / 0.8816 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004534, allocations: 3.438 kB / 0.8816 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.91e-07/0.004534, allocations: 0 / 0.8816 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.004538, allocations: 0 / 0.8816 GB, free: 2.848 MB / 0.8386 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.0005096/0.005048, allocations: 0.5519 MB / 0.8821 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.005083, allocations: 8.031 kB / 0.8821 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.457e-05/0.005147, allocations: 32.78 kB / 0.8822 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.507e-05/0.005242, allocations: 125.1 kB / 0.8823 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.005265, allocations: 12.38 kB / 0.8823 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.005298, allocations: 20.38 kB / 0.8823 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.005426, allocations: 94.83 kB / 0.8824 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.005437, allocations: 0 / 0.8824 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.005448, allocations: 5.531 kB / 0.8824 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.005458, allocations: 7.938 kB / 0.8824 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.359e-05/0.005511, allocations: 23.98 kB / 0.8824 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004885/0.006, allocations: 439.3 kB / 0.8829 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.006159, allocations: 63.11 kB / 0.8829 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.353e-05/0.006192, allocations: 19.73 kB / 0.8829 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-06/0.0062, allocations: 0 / 0.8829 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/0.006321, allocations: 113 kB / 0.8831 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.011e-06/0.006322, allocations: 0 / 0.8831 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002459/0.006568, allocations: 149.5 kB / 0.8832 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.006597, allocations: 55.41 kB / 0.8832 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.006705, allocations: 220.1 kB / 0.8835 GB, free: 0.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.00673, allocations: 29.7 kB / 0.8835 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.006797, allocations: 167.3 kB / 0.8836 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.006823, allocations: 27.8 kB / 0.8837 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.921e-05/0.006912, allocations: 79.33 kB / 0.8837 GB, free: 444 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.007035, allocations: 0.4961 MB / 0.8842 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.00719, allocations: 176.9 kB / 0.8844 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.007369, allocations: 246.8 kB / 0.8846 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.007556, allocations: 241 kB / 0.8849 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.007558, allocations: 0 / 0.8849 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000432/0.00799, allocations: 487.4 kB / 0.8853 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.893e-05/0.008039, allocations: 97.03 kB / 0.8854 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.008046, allocations: 7.938 kB / 0.8854 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.008063, allocations: 0 / 0.8854 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.264e-05/0.008106, allocations: 19.92 kB / 0.8855 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.008111, allocations: 192 / 0.8855 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.008307, allocations: 71.83 kB / 0.8855 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.008334, allocations: 19.98 kB / 0.8855 GB, free: 14.41 MB / 0.8542 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.783e-05/0.008421, allocations: 168.6 kB / 0.8857 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.00844, allocations: 19.91 kB / 0.8857 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.878e-05/0.008469, allocations: 20.7 kB / 0.8857 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.008471, allocations: 8 kB / 0.8857 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.008475, allocations: 0 / 0.8857 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.00848, allocations: 3.984 kB / 0.8857 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.008583, allocations: 164.5 kB / 0.8859 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.008585, allocations: 0 / 0.8859 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.14e-05/0.008606, allocations: 8 kB / 0.8859 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-06/0.008607, allocations: 0 / 0.8859 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.008615, allocations: 4 kB / 0.8859 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.008617, allocations: 3.938 kB / 0.8859 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.008618, allocations: 0 / 0.8859 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.008771, allocations: 167.7 kB / 0.8861 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.638e-06/0.008781, allocations: 11.95 kB / 0.8861 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.008793, allocations: 4 kB / 0.8861 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.712e-05/0.00881, allocations: 11.88 kB / 0.8861 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.008844, allocations: 7.984 kB / 0.8861 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-06/0.008854, allocations: 11.98 kB / 0.8861 GB, free: 13.74 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.32e-05/0.008907, allocations: 144.7 kB / 0.8863 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.1e-08/0.008907, allocations: 0 / 0.8863 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000178/0.009085, allocations: 51.95 kB / 0.8863 GB, free: 13.55 MB / 0.8542 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 0.0001026/0.009188, allocations: 111.2 kB / 0.8864 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.009526, allocations: 427.4 kB / 0.8868 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.009528, allocations: 3.938 kB / 0.8868 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.005e-05/0.009578, allocations: 43.67 kB / 0.8869 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001911/0.009769, allocations: 30.7 kB / 0.8869 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003284/0.0101, allocations: 255.1 kB / 0.8871 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.437e-05/0.01013, allocations: 71.34 kB / 0.8872 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.01016, allocations: 12.97 kB / 0.8872 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.01019, allocations: 12.5 kB / 0.8872 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of SimCode: time 7.01e-07/0.01019, allocations: 0 / 0.8872 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of Templates: time 0.0043/0.01449, allocations: 3.043 MB / 0.8902 GB, free: 9.516 MB / 0.8542 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.754647608380765]