Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001816/0.001816, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001967/0.001967, allocations: 210 kB / 22.24 MB, free: 5.262 MB / 14.72 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.585/1.585, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 3.623/3.623, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003111/0.003111, allocations: 70.7 kB / 1.186 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4858/0.4889, allocations: 181.9 MB / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002747/0.4916, allocations: 0.7831 MB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002169/0.4938, allocations: 1.171 MB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.938e-05/0.4939, allocations: 3.938 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.06e-05/0.4939, allocations: 3.938 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.494, allocations: 15.88 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.4947, allocations: 134.3 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002385/0.4949, allocations: 127.8 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.495, allocations: 11.98 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.4952, allocations: 47.84 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.4953, allocations: 55.8 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.247e-05/0.4953, allocations: 12 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.205e-05/0.4954, allocations: 23.98 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.393e-05/0.4955, allocations: 15.94 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.437e-05/0.4955, allocations: 35.91 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.4958, allocations: 127.5 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4958, allocations: 0 / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.354e-06/0.4958, allocations: 0 / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.4958, allocations: 0 / 1.366 GB, free: 10.95 MB / 1.061 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.000767/0.4966, allocations: 343.8 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.4966, allocations: 8.031 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.826e-05/0.4967, allocations: 16.89 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.4968, allocations: 126.4 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.4968, allocations: 384 / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.4969, allocations: 8.375 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.4972, allocations: 74.2 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.4972, allocations: 192 / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.4972, allocations: 7.938 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.4972, allocations: 4 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.4975, allocations: 67.92 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/0.498, allocations: 260.4 kB / 1.367 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.4982, allocations: 58.47 kB / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.4984, allocations: 36.92 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.4984, allocations: 7.984 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003515/0.4988, allocations: 95.31 kB / 1.367 GB, free: 9.738 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.4988, allocations: 0 / 1.367 GB, free: 9.738 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0006579/0.4994, allocations: 165.5 kB / 1.368 GB, free: 9.57 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.4995, allocations: 55.41 kB / 1.368 GB, free: 9.504 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.4996, allocations: 125 kB / 1.368 GB, free: 9.371 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.4997, allocations: 33.7 kB / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.709e-05/0.4997, allocations: 92.12 kB / 1.368 GB, free: 9.238 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.4998, allocations: 11.91 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.4998, allocations: 41.64 kB / 1.368 GB, free: 9.18 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001783/0.5, allocations: 318.8 kB / 1.368 GB, free: 8.859 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.5003, allocations: 93.64 kB / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002687/0.5005, allocations: 112.2 kB / 1.368 GB, free: 8.637 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.5009, allocations: 144.1 kB / 1.369 GB, free: 8.48 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5009, allocations: 3.938 kB / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005913/0.5015, allocations: 253 kB / 1.369 GB, free: 8.211 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.372e-05/0.5016, allocations: 37.69 kB / 1.369 GB, free: 8.168 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.5016, allocations: 0 / 1.369 GB, free: 8.168 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.5016, allocations: 4 kB / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.5017, allocations: 19.92 kB / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.5018, allocations: 0 / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.502, allocations: 51.89 kB / 1.369 GB, free: 8.094 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.502, allocations: 8.312 kB / 1.369 GB, free: 8.086 MB / 1.061 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 0.0001354/0.5021, allocations: 118.4 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.5022, allocations: 4 kB / 1.369 GB, free: 7.957 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.5022, allocations: 16.3 kB / 1.369 GB, free: 7.938 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5022, allocations: 0 / 1.369 GB, free: 7.938 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.5022, allocations: 4 kB / 1.369 GB, free: 7.934 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.5022, allocations: 0 / 1.369 GB, free: 7.934 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.5024, allocations: 129.2 kB / 1.369 GB, free: 7.777 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5024, allocations: 4 kB / 1.369 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.5025, allocations: 19.97 kB / 1.369 GB, free: 7.754 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.5025, allocations: 0 / 1.369 GB, free: 7.754 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.5025, allocations: 0 / 1.369 GB, free: 7.754 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5025, allocations: 0 / 1.369 GB, free: 7.754 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5025, allocations: 0 / 1.369 GB, free: 7.754 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/0.5029, allocations: 156.9 kB / 1.369 GB, free: 7.582 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.503, allocations: 11.95 kB / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.503, allocations: 4 kB / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.834e-05/0.5031, allocations: 7.984 kB / 1.369 GB, free: 7.559 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.5031, allocations: 7.984 kB / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.5031, allocations: 4 kB / 1.369 GB, free: 7.547 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.56e-05/0.5032, allocations: 95.27 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.5032, allocations: 0 / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002175/0.5034, allocations: 20 kB / 1.37 GB, free: 7.434 MB / 1.061 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.000263/0.5037, allocations: 103.2 kB / 1.37 GB, free: 7.324 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005586/0.5043, allocations: 204.9 kB / 1.37 GB, free: 7.105 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5043, allocations: 96 / 1.37 GB, free: 7.105 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.5044, allocations: 51.89 kB / 1.37 GB, free: 7.055 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.5047, allocations: 29.36 kB / 1.37 GB, free: 7.027 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004937/0.5052, allocations: 158.3 kB / 1.37 GB, free: 6.848 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.231e-05/0.5053, allocations: 79.33 kB / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.194e-05/0.5053, allocations: 4 kB / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.5054, allocations: 7.438 kB / 1.37 GB, free: 6.738 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.5054, allocations: 0 / 1.37 GB, free: 6.738 MB / 1.061 GB Notification: Performance of Templates: time 0.005537/0.5109, allocations: 1.771 MB / 1.372 GB, free: 5.004 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.200435504317284]