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.001349/0.001349, allocations: 73.09 kB / 20.66 MB, free: 3.844 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.001574/0.001574, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.927/0.927, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.069/2.069, allocations: 429.5 MB / 0.6743 GB, free: 3.934 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.813e-06/1.813e-06, allocations: 0 / 0.8794 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.525e-05/1.706e-05, allocations: 2.312 kB / 0.8794 GB, free: 6.012 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001299/0.001316, allocations: 0.8352 MB / 0.8802 GB, free: 5.203 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.002661, allocations: 1.333 MB / 0.8815 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.625e-05/0.002728, allocations: 0.5469 kB / 0.8815 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.578e-05/0.002763, allocations: 11.86 kB / 0.8815 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.702e-05/0.00285, allocations: 29.19 kB / 0.8816 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.003421, allocations: 308.6 kB / 0.8819 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.003665, allocations: 301 kB / 0.8822 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.494e-05/0.00376, allocations: 29.56 kB / 0.8822 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.00391, allocations: 159.8 kB / 0.8823 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.004035, allocations: 91.77 kB / 0.8824 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.004068, allocations: 26.09 kB / 0.8824 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/0.004134, allocations: 36 kB / 0.8825 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.778e-05/0.004162, allocations: 27.91 kB / 0.8825 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.004229, allocations: 79.86 kB / 0.8826 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.004433, allocations: 223.4 kB / 0.8828 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.004435, allocations: 2.438 kB / 0.8828 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.31e-07/0.004436, allocations: 3.938 kB / 0.8828 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.00444, allocations: 0 / 0.8828 GB, free: 2.559 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.0004459/0.004886, allocations: 0.5596 MB / 0.8833 GB, free: 1.945 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.004914, allocations: 8.031 kB / 0.8834 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.341e-05/0.004968, allocations: 28.84 kB / 0.8834 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.005128, allocations: 161 kB / 0.8835 GB, free: 1.727 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.005149, allocations: 21.08 kB / 0.8836 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.005177, allocations: 20.38 kB / 0.8836 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.217e-05/0.005269, allocations: 89.39 kB / 0.8837 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.005275, allocations: 0 / 0.8837 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.005283, allocations: 4 kB / 0.8837 GB, free: 1.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.005288, allocations: 4 kB / 0.8837 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.385e-05/0.005322, allocations: 25.31 kB / 0.8837 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003886/0.00571, allocations: 411.9 kB / 0.8841 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.005842, allocations: 55.16 kB / 0.8841 GB, free: 1.066 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.242e-05/0.005864, allocations: 23.67 kB / 0.8842 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.005872, allocations: 4 kB / 0.8842 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001031/0.005975, allocations: 109 kB / 0.8843 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.005976, allocations: 0 / 0.8843 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0001883/0.006164, allocations: 133.2 kB / 0.8844 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.006197, allocations: 63.34 kB / 0.8845 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.933e-05/0.006287, allocations: 204 kB / 0.8847 GB, free: 0.4922 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.006313, allocations: 37.7 kB / 0.8847 GB, free: 460 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.006382, allocations: 163.2 kB / 0.8848 GB, free: 292 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.006405, allocations: 39.72 kB / 0.8849 GB, free: 252 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.341e-05/0.006488, allocations: 87.28 kB / 0.885 GB, free: 156 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.006619, allocations: 0.4923 MB / 0.8854 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.006735, allocations: 152.9 kB / 0.8856 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.006869, allocations: 228.5 kB / 0.8858 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.007023, allocations: 230.8 kB / 0.886 GB, free: 14.94 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.007027, allocations: 11.94 kB / 0.886 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003643/0.007391, allocations: 449.7 kB / 0.8865 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.00744, allocations: 101.1 kB / 0.8866 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.007446, allocations: 4 kB / 0.8866 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.007455, allocations: 3.938 kB / 0.8866 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.536e-05/0.00749, allocations: 15.94 kB / 0.8866 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.007494, allocations: 3.984 kB / 0.8866 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.007684, allocations: 68.03 kB / 0.8867 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.007708, allocations: 15.98 kB / 0.8867 GB, free: 14.22 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.604e-05/0.007794, allocations: 176.6 kB / 0.8868 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.007811, allocations: 19.84 kB / 0.8869 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.437e-05/0.007836, allocations: 12.78 kB / 0.8869 GB, free: 14 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.007839, allocations: 3.938 kB / 0.8869 GB, free: 14 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.007841, allocations: 7.938 kB / 0.8869 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.007845, allocations: 7.984 kB / 0.8869 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.064e-05/0.007935, allocations: 133.2 kB / 0.887 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.007937, allocations: 0 / 0.887 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.113e-05/0.007958, allocations: 11.98 kB / 0.887 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.00796, allocations: 4 kB / 0.887 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.007967, allocations: 4 kB / 0.887 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.007968, allocations: 0 / 0.887 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.007969, allocations: 0 / 0.887 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000123/0.008092, allocations: 164.2 kB / 0.8872 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.008102, allocations: 15.88 kB / 0.8872 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.111e-05/0.008113, allocations: 3.984 kB / 0.8872 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.453e-05/0.008128, allocations: 4 kB / 0.8872 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.008155, allocations: 15.92 kB / 0.8872 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.008161, allocations: 4 kB / 0.8872 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.486e-05/0.008206, allocations: 147.9 kB / 0.8874 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.008206, allocations: 0 / 0.8874 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001768/0.008383, allocations: 51.95 kB / 0.8874 GB, free: 13.38 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 8.791e-05/0.008471, allocations: 105 kB / 0.8875 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.00875, allocations: 406.9 kB / 0.8879 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.008752, allocations: 0 / 0.8879 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.892e-05/0.008791, allocations: 43.64 kB / 0.888 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001642/0.008955, allocations: 36.23 kB / 0.888 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002733/0.009228, allocations: 238.7 kB / 0.8882 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.372e-05/0.009262, allocations: 71.33 kB / 0.8883 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.853e-05/0.00929, allocations: 13.23 kB / 0.8883 GB, free: 12.37 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.009425, allocations: 126.1 kB / 0.8884 GB, free: 12.24 MB / 0.8542 GB Notification: Performance of SimCode: time 3.81e-07/0.009426, allocations: 0 / 0.8884 GB, free: 12.24 MB / 0.8542 GB Notification: Performance of Templates: time 0.004342/0.01377, allocations: 3.37 MB / 0.8917 GB, free: 8.949 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.344165252987295]