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.0009585/0.0009585, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.001462/0.001462, allocations: 173.7 kB / 23.28 MB, free: 1.219 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.9255/0.9255, allocations: 177.1 MB / 203.7 MB, free: 5.484 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.377/2.377, allocations: 438.1 MB / 0.682 GB, free: 14.14 MB / 0.6511 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 2.014e-06/2.014e-06, allocations: 0 / 0.8898 GB, free: 9.734 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.863e-05/3.065e-05, allocations: 9.125 kB / 0.8898 GB, free: 9.727 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001655/0.001686, allocations: 0.8169 MB / 0.8906 GB, free: 8.91 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001375/0.003061, allocations: 1.329 MB / 0.8919 GB, free: 7.566 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.316e-05/0.003124, allocations: 4 kB / 0.8919 GB, free: 7.562 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.765e-05/0.003162, allocations: 11.86 kB / 0.8919 GB, free: 7.551 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 8.129e-05/0.003243, allocations: 19.75 kB / 0.8919 GB, free: 7.531 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006345/0.003878, allocations: 315.2 kB / 0.8922 GB, free: 7.223 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.004123, allocations: 299.4 kB / 0.8925 GB, free: 6.93 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.805e-05/0.004221, allocations: 37.48 kB / 0.8925 GB, free: 6.891 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.004379, allocations: 159.8 kB / 0.8927 GB, free: 6.734 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.004506, allocations: 91.77 kB / 0.8928 GB, free: 6.645 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 4.081e-05/0.004547, allocations: 24 kB / 0.8928 GB, free: 6.621 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 7.151e-05/0.004618, allocations: 36 kB / 0.8928 GB, free: 6.586 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.755e-05/0.004646, allocations: 23.92 kB / 0.8928 GB, free: 6.562 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.86e-05/0.004714, allocations: 91.78 kB / 0.8929 GB, free: 6.473 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.004927, allocations: 223.4 kB / 0.8931 GB, free: 6.254 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004929, allocations: 0 / 0.8931 GB, free: 6.254 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.092e-06/0.00493, allocations: 0 / 0.8931 GB, free: 6.254 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.004934, allocations: 0 / 0.8931 GB, free: 6.254 MB / 0.8542 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.0005598/0.005494, allocations: 0.5556 MB / 0.8937 GB, free: 5.645 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.005551, allocations: 8.625 kB / 0.8937 GB, free: 5.637 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.695e-05/0.005628, allocations: 28.89 kB / 0.8937 GB, free: 5.609 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.005818, allocations: 169 kB / 0.8939 GB, free: 5.418 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.005845, allocations: 20.36 kB / 0.8939 GB, free: 5.398 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.005875, allocations: 24.36 kB / 0.8939 GB, free: 5.375 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.005996, allocations: 86.23 kB / 0.894 GB, free: 5.281 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.006005, allocations: 0 / 0.894 GB, free: 5.281 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.006015, allocations: 4 kB / 0.894 GB, free: 5.277 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.006021, allocations: 4 kB / 0.894 GB, free: 5.273 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.933e-05/0.006061, allocations: 23.97 kB / 0.894 GB, free: 5.25 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.006541, allocations: 411.9 kB / 0.8944 GB, free: 4.82 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.006702, allocations: 59.09 kB / 0.8945 GB, free: 4.75 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.671e-05/0.006729, allocations: 23.73 kB / 0.8945 GB, free: 4.723 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.006737, allocations: 0 / 0.8945 GB, free: 4.723 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.006872, allocations: 109 kB / 0.8946 GB, free: 4.602 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.006873, allocations: 0 / 0.8946 GB, free: 4.602 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14): time 0.0002499/0.007123, allocations: 144.8 kB / 0.8947 GB, free: 4.457 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.007161, allocations: 63.28 kB / 0.8948 GB, free: 4.383 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.00728, allocations: 211.5 kB / 0.895 GB, free: 4.16 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.007309, allocations: 29.7 kB / 0.895 GB, free: 4.125 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.347e-05/0.007393, allocations: 163.2 kB / 0.8952 GB, free: 3.961 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.007419, allocations: 35.72 kB / 0.8952 GB, free: 3.926 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.007521, allocations: 87.3 kB / 0.8953 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.007672, allocations: 0.4962 MB / 0.8958 GB, free: 3.324 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.007811, allocations: 153 kB / 0.8959 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.00796, allocations: 222.8 kB / 0.8962 GB, free: 2.891 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.008139, allocations: 241.1 kB / 0.8964 GB, free: 2.609 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.008141, allocations: 0 / 0.8964 GB, free: 2.609 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004281/0.008569, allocations: 451.5 kB / 0.8968 GB, free: 2.125 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 6.394e-05/0.008633, allocations: 101.1 kB / 0.8969 GB, free: 2.008 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.00864, allocations: 0 / 0.8969 GB, free: 2.008 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.008657, allocations: 7.938 kB / 0.8969 GB, free: 2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.814e-05/0.008705, allocations: 11.94 kB / 0.8969 GB, free: 1.988 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.00871, allocations: 7.984 kB / 0.8969 GB, free: 1.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.008899, allocations: 64.03 kB / 0.897 GB, free: 1.918 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.008925, allocations: 23.98 kB / 0.897 GB, free: 1.895 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 0.0001022/0.009028, allocations: 180.5 kB / 0.8972 GB, free: 1.707 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/0.009047, allocations: 15.91 kB / 0.8972 GB, free: 1.691 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.009082, allocations: 12.78 kB / 0.8972 GB, free: 1.672 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.009085, allocations: 7.938 kB / 0.8972 GB, free: 1.664 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.009088, allocations: 0 / 0.8972 GB, free: 1.664 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.009092, allocations: 3.984 kB / 0.8972 GB, free: 1.66 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.0092, allocations: 133.2 kB / 0.8974 GB, free: 1.504 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.009202, allocations: 0 / 0.8974 GB, free: 1.504 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-05/0.009237, allocations: 15.98 kB / 0.8974 GB, free: 1.488 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.009239, allocations: 0 / 0.8974 GB, free: 1.488 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.009244, allocations: 0 / 0.8974 GB, free: 1.488 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.009246, allocations: 4 kB / 0.8974 GB, free: 1.484 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.009247, allocations: 0 / 0.8974 GB, free: 1.484 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.0094, allocations: 160.2 kB / 0.8975 GB, free: 1.305 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.424e-05/0.009414, allocations: 11.89 kB / 0.8975 GB, free: 1.293 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.009427, allocations: 3.984 kB / 0.8975 GB, free: 1.289 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.235e-05/0.009449, allocations: 8 kB / 0.8976 GB, free: 1.281 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/0.009478, allocations: 15.92 kB / 0.8976 GB, free: 1.266 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.009485, allocations: 4 kB / 0.8976 GB, free: 1.262 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.072e-05/0.009535, allocations: 149.2 kB / 0.8977 GB, free: 1.117 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.009535, allocations: 0 / 0.8977 GB, free: 1.117 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001882/0.009724, allocations: 51.95 kB / 0.8978 GB, free: 1.066 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.0001445/0.009868, allocations: 103.9 kB / 0.8979 GB, free: 0.957 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003021/0.01017, allocations: 411.1 kB / 0.8983 GB, free: 0.4961 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.01017, allocations: 4.062 kB / 0.8983 GB, free: 0.4922 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.386e-05/0.01022, allocations: 43.61 kB / 0.8983 GB, free: 456 kB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.01042, allocations: 37.48 kB / 0.8983 GB, free: 420 kB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003167/0.01073, allocations: 238.8 kB / 0.8986 GB, free: 152 kB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.757e-05/0.01077, allocations: 67.33 kB / 0.8986 GB, free: 64 kB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.0108, allocations: 12.97 kB / 0.8986 GB, free: 52 kB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.01095, allocations: 134.1 kB / 0.8988 GB, free: 15.92 MB / 0.8698 GB Notification: Performance of SimCode: time 7.01e-07/0.01095, allocations: 0 / 0.8988 GB, free: 15.92 MB / 0.8698 GB Notification: Performance of Templates: time 0.004792/0.01574, allocations: 3.272 MB / 0.902 GB, free: 12.71 MB / 0.8698 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.396529796998948]