Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.0007551/0.0007551, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001117/0.001873, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006736/0.0006736, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009115/0.001585, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9761/0.9761, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0984/1.074, allocations: 53.65 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.815/1.815, allocations: 378.4 MB / 0.6079 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.61/2.425, allocations: 123.3 MB / 0.7283 GB, free: 5.738 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0.7656 kB / 0.7297 GB, free: 4.363 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.544e-05, allocations: 4.562 kB / 0.7297 GB, free: 4.359 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001529/0.001554, allocations: 0.8417 MB / 0.7305 GB, free: 3.547 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.002605, allocations: 1.197 MB / 0.7317 GB, free: 2.34 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.038e-05/0.002646, allocations: 1.344 kB / 0.7317 GB, free: 2.34 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.418e-05/0.00267, allocations: 3.938 kB / 0.7317 GB, free: 2.336 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.721e-05/0.002717, allocations: 13.73 kB / 0.7317 GB, free: 2.328 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.00302, allocations: 140.1 kB / 0.7319 GB, free: 2.195 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.003186, allocations: 129.1 kB / 0.732 GB, free: 2.082 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.254e-05/0.003269, allocations: 8.547 kB / 0.732 GB, free: 2.074 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.0034, allocations: 87.58 kB / 0.7321 GB, free: 1.992 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.841e-05/0.003498, allocations: 44.41 kB / 0.7321 GB, free: 1.949 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.003522, allocations: 12 kB / 0.7321 GB, free: 1.938 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.827e-05/0.0036, allocations: 20 kB / 0.7321 GB, free: 1.918 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.003629, allocations: 12.44 kB / 0.7322 GB, free: 1.906 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.823e-05/0.003667, allocations: 24 kB / 0.7322 GB, free: 1.883 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.003808, allocations: 80.55 kB / 0.7323 GB, free: 1.805 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.173e-05/0.00382, allocations: 0 / 0.7323 GB, free: 1.805 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.41e-07/0.00382, allocations: 1.406 kB / 0.7323 GB, free: 1.805 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.496e-05/0.003835, allocations: 0 / 0.7323 GB, free: 1.805 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005123/0.004347, allocations: 326.1 kB / 0.7326 GB, free: 1.453 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.004381, allocations: 8.562 kB / 0.7326 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.952e-05/0.00443, allocations: 18.39 kB / 0.7326 GB, free: 1.43 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.883e-05/0.004519, allocations: 117.7 kB / 0.7327 GB, free: 1.289 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.004532, allocations: 4.375 kB / 0.7327 GB, free: 1.285 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.004551, allocations: 8.312 kB / 0.7327 GB, free: 1.277 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.004695, allocations: 75.97 kB / 0.7328 GB, free: 1.195 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.004702, allocations: 192 / 0.7328 GB, free: 1.195 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.00471, allocations: 4.875 kB / 0.7328 GB, free: 1.191 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.004716, allocations: 384 / 0.7328 GB, free: 1.191 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.434e-05/0.00474, allocations: 17.52 kB / 0.7328 GB, free: 1.176 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002814/0.005021, allocations: 180.1 kB / 0.733 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.277e-05/0.005064, allocations: 18.58 kB / 0.733 GB, free: 0.957 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.986e-05/0.005084, allocations: 13.52 kB / 0.733 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.005102, allocations: 4 kB / 0.733 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.569e-05/0.005198, allocations: 64.72 kB / 0.7331 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.005199, allocations: 0 / 0.7331 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001318/0.005331, allocations: 69.61 kB / 0.7331 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.005362, allocations: 53 kB / 0.7332 GB, free: 0.7266 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.065e-05/0.005433, allocations: 126.7 kB / 0.7333 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.005451, allocations: 29.7 kB / 0.7333 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.585e-05/0.005487, allocations: 92.12 kB / 0.7334 GB, free: 472 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.005504, allocations: 15.84 kB / 0.7334 GB, free: 456 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/0.005547, allocations: 35.03 kB / 0.7335 GB, free: 416 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.45e-05/0.005621, allocations: 318.8 kB / 0.7338 GB, free: 88 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.339e-05/0.005675, allocations: 49.69 kB / 0.7338 GB, free: 32 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.682e-05/0.005752, allocations: 80.83 kB / 0.7339 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.978e-05/0.005831, allocations: 81.36 kB / 0.734 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.005835, allocations: 0 / 0.734 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000152/0.005987, allocations: 162 kB / 0.7341 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.006027, allocations: 33.69 kB / 0.7342 GB, free: 15.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.006036, allocations: 12.66 kB / 0.7342 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.006052, allocations: 0 / 0.7342 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.00616, allocations: 12.61 kB / 0.7342 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.006166, allocations: 4.906 kB / 0.7342 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.758e-05/0.006254, allocations: 28.45 kB / 0.7342 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.006276, allocations: 7.984 kB / 0.7342 GB, free: 15.57 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.585e-05/0.006352, allocations: 111.4 kB / 0.7343 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.006365, allocations: 8 kB / 0.7344 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.36e-05/0.006398, allocations: 12.36 kB / 0.7344 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.006403, allocations: 9.281 kB / 0.7344 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.006406, allocations: 0 / 0.7344 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.006411, allocations: 0 / 0.7344 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.875e-05/0.00651, allocations: 77.88 kB / 0.7344 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.006511, allocations: 5.25 kB / 0.7345 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.625e-05/0.006568, allocations: 15.92 kB / 0.7345 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.405e-06/0.006576, allocations: 3.953 kB / 0.7345 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.006579, allocations: 5.25 kB / 0.7345 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.006585, allocations: 0 / 0.7345 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.006588, allocations: 3.938 kB / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.00659, allocations: 0.875 kB / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.006701, allocations: 85.09 kB / 0.7346 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.006714, allocations: 0.9062 kB / 0.7346 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.511e-05/0.006739, allocations: 7.984 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.006782, allocations: 17 kB / 0.7346 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.006789, allocations: 3.984 kB / 0.7346 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.487e-05/0.006814, allocations: 21.11 kB / 0.7346 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006814, allocations: 0 / 0.7346 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001279/0.006942, allocations: 23.98 kB / 0.7346 GB, free: 15.12 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001795/0.007121, allocations: 85.58 kB / 0.7347 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001692/0.007291, allocations: 142.6 kB / 0.7348 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.007297, allocations: 4.688 kB / 0.7349 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.516e-05/0.007332, allocations: 20.84 kB / 0.7349 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001609/0.007493, allocations: 141.5 kB / 0.735 GB, free: 14.68 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004672/0.00796, allocations: 168.2 kB / 0.7352 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.948e-05/0.00799, allocations: 55.36 kB / 0.7352 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.755e-05/0.008017, allocations: 5.906 kB / 0.7352 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.383e-05/0.008101, allocations: 75.28 kB / 0.7353 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of SimCode: time 5.21e-07/0.008102, allocations: 0 / 0.7353 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of Templates: time 0.003417/0.01152, allocations: 1.773 MB / 0.737 GB, free: 12.66 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.917523461394012]