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.0009897/0.0009897, allocations: 93.06 kB / 19.65 MB, free: 280 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.0009672/0.0009672, allocations: 173.3 kB / 23.03 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 1.028/1.028, allocations: 177.2 MB / 203.4 MB, free: 5.637 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.12/2.12, allocations: 429.5 MB / 0.6733 GB, free: 4.055 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 4.238e-06/4.238e-06, allocations: 0.6562 kB / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.645e-05/4.069e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002408/0.002449, allocations: 0.8425 MB / 0.879 GB, free: 5.484 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002099/0.004548, allocations: 1.341 MB / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.004655, allocations: 4 kB / 0.8803 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 6.183e-05/0.004717, allocations: 8.75 kB / 0.8803 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.004848, allocations: 25.81 kB / 0.8804 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.00605, allocations: 309.5 kB / 0.8807 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.006483, allocations: 297.8 kB / 0.8809 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.006658, allocations: 33.55 kB / 0.881 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.006926, allocations: 159.8 kB / 0.8811 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.007132, allocations: 87.77 kB / 0.8812 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.985e-05/0.007191, allocations: 28 kB / 0.8812 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.007304, allocations: 34.16 kB / 0.8813 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.604e-05/0.00735, allocations: 23.86 kB / 0.8813 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.007484, allocations: 91.84 kB / 0.8814 GB, free: 3.059 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004042/0.007889, allocations: 223.3 kB / 0.8816 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.007895, allocations: 0 / 0.8816 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.214e-06/0.007897, allocations: 0 / 0.8816 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.007905, allocations: 0.7188 kB / 0.8816 GB, free: 2.84 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.0007842/0.008689, allocations: 0.5519 MB / 0.8821 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.008746, allocations: 13.69 kB / 0.8821 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.008866, allocations: 28.84 kB / 0.8822 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.009155, allocations: 165 kB / 0.8823 GB, free: 2.008 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.009194, allocations: 16.31 kB / 0.8823 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.009241, allocations: 21.59 kB / 0.8824 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.009565, allocations: 91.11 kB / 0.8825 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.009579, allocations: 0 / 0.8825 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.009598, allocations: 11.98 kB / 0.8825 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.009608, allocations: 4 kB / 0.8825 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.691e-05/0.009675, allocations: 23.98 kB / 0.8825 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005855/0.01026, allocations: 443.2 kB / 0.8829 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.01047, allocations: 59.05 kB / 0.883 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.042e-05/0.01051, allocations: 23.73 kB / 0.883 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.01052, allocations: 4 kB / 0.883 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.01067, allocations: 109.1 kB / 0.8831 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.01067, allocations: 0 / 0.8831 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.000302/0.01097, allocations: 153.5 kB / 0.8832 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.01102, allocations: 55.41 kB / 0.8833 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.01114, allocations: 207.3 kB / 0.8835 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.01117, allocations: 37.7 kB / 0.8835 GB, free: 0.6602 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.01124, allocations: 155.3 kB / 0.8837 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.913e-05/0.01127, allocations: 31.73 kB / 0.8837 GB, free: 484 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.811e-05/0.01137, allocations: 87.31 kB / 0.8838 GB, free: 388 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.0115, allocations: 0.4962 MB / 0.8843 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.01168, allocations: 172.9 kB / 0.8844 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.0119, allocations: 244.5 kB / 0.8847 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.01213, allocations: 253.3 kB / 0.8849 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.01213, allocations: 4 kB / 0.8849 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005574/0.01269, allocations: 471.5 kB / 0.8854 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 6.593e-05/0.01276, allocations: 101 kB / 0.8855 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.01276, allocations: 8.188 kB / 0.8855 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.01278, allocations: 4 kB / 0.8855 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.165e-05/0.01283, allocations: 11.94 kB / 0.8855 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.01284, allocations: 3.984 kB / 0.8855 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.01309, allocations: 63.84 kB / 0.8856 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.01313, allocations: 19.98 kB / 0.8856 GB, free: 14.37 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.0001167/0.01325, allocations: 184.5 kB / 0.8858 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.01327, allocations: 15.91 kB / 0.8858 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.0133, allocations: 16.72 kB / 0.8858 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.01331, allocations: 4 kB / 0.8858 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.01331, allocations: 0 / 0.8858 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.01332, allocations: 3.984 kB / 0.8858 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.01344, allocations: 152.6 kB / 0.8859 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01344, allocations: 0 / 0.8859 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.01347, allocations: 15.98 kB / 0.886 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.01348, allocations: 4 kB / 0.886 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.01349, allocations: 4 kB / 0.886 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.01349, allocations: 3.938 kB / 0.886 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01349, allocations: 0 / 0.886 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.01367, allocations: 163.9 kB / 0.8861 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.28e-05/0.01368, allocations: 11.89 kB / 0.8861 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.01371, allocations: 11.98 kB / 0.8861 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.328e-05/0.01373, allocations: 3.938 kB / 0.8861 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.01377, allocations: 11.98 kB / 0.8862 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.01378, allocations: 4 kB / 0.8862 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.244e-05/0.01384, allocations: 152.3 kB / 0.8863 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01384, allocations: 0 / 0.8863 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002595/0.0141, allocations: 59.89 kB / 0.8864 GB, free: 13.5 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.0001651/0.01427, allocations: 100.3 kB / 0.8865 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004144/0.01468, allocations: 426.8 kB / 0.8869 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01469, allocations: 0 / 0.8869 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.227e-05/0.01475, allocations: 55.58 kB / 0.8869 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.01499, allocations: 38.45 kB / 0.887 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.01539, allocations: 242.8 kB / 0.8872 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.035e-05/0.01543, allocations: 71.33 kB / 0.8873 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.461e-05/0.01546, allocations: 8.984 kB / 0.8873 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.01549, allocations: 12.5 kB / 0.8873 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of SimCode: time 7.11e-07/0.01549, allocations: 0 / 0.8873 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of Templates: time 0.00559/0.02108, allocations: 3.312 MB / 0.8905 GB, free: 9.199 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.616758833639324]