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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001984/0.001984, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002133/0.002133, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.472/3.472, allocations: 496 MB / 0.7835 GB, free: 33.58 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002069/0.002069, allocations: 63.36 kB / 1.138 GB, free: 33.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.474/0.476, allocations: 173.6 MB / 1.307 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002421/0.4785, allocations: 0.8047 MB / 1.308 GB, free: 0.9883 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001725/0.4802, allocations: 1.162 MB / 1.309 GB, free: 15.81 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.298e-05/0.4803, allocations: 0 / 1.309 GB, free: 15.81 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.52e-05/0.4803, allocations: 3.938 kB / 1.309 GB, free: 15.81 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.592e-05/0.4804, allocations: 15.86 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.4809, allocations: 139.1 kB / 1.309 GB, free: 15.66 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.4812, allocations: 131.7 kB / 1.31 GB, free: 15.53 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.915e-05/0.4813, allocations: 15.98 kB / 1.31 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.4814, allocations: 51.89 kB / 1.31 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.4815, allocations: 51.83 kB / 1.31 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.4815, allocations: 8 kB / 1.31 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.336e-05/0.4816, allocations: 27.98 kB / 1.31 GB, free: 15.38 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.612e-05/0.4816, allocations: 11.97 kB / 1.31 GB, free: 15.37 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.629e-05/0.4817, allocations: 47.78 kB / 1.31 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.4819, allocations: 127.5 kB / 1.31 GB, free: 15.2 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4819, allocations: 0 / 1.31 GB, free: 15.2 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4819, allocations: 4 kB / 1.31 GB, free: 15.19 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.4819, allocations: 0 / 1.31 GB, free: 15.19 MB / 1.014 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.0007065/0.4826, allocations: 347.8 kB / 1.31 GB, free: 14.81 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.4827, allocations: 12.92 kB / 1.31 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.4827, allocations: 8.891 kB / 1.31 GB, free: 14.79 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.4828, allocations: 114.5 kB / 1.31 GB, free: 14.66 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.4829, allocations: 8.359 kB / 1.31 GB, free: 14.65 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.4829, allocations: 8.375 kB / 1.31 GB, free: 14.64 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.4831, allocations: 90.17 kB / 1.31 GB, free: 14.55 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.4831, allocations: 192 / 1.31 GB, free: 14.55 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.4832, allocations: 3.938 kB / 1.31 GB, free: 14.54 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4832, allocations: 0 / 1.31 GB, free: 14.54 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.4834, allocations: 71.86 kB / 1.31 GB, free: 14.47 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005087/0.484, allocations: 303.8 kB / 1.311 GB, free: 14.13 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.4841, allocations: 50.53 kB / 1.311 GB, free: 14.07 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.4843, allocations: 36.92 kB / 1.311 GB, free: 14.04 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.4843, allocations: 11.98 kB / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/0.4846, allocations: 99.25 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.4846, allocations: 0 / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0005743/0.4852, allocations: 161.6 kB / 1.311 GB, free: 13.75 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.4852, allocations: 55.41 kB / 1.311 GB, free: 13.68 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.4853, allocations: 125 kB / 1.311 GB, free: 13.55 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.4854, allocations: 29.7 kB / 1.311 GB, free: 13.52 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.4854, allocations: 92.12 kB / 1.311 GB, free: 13.42 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.4855, allocations: 23.91 kB / 1.311 GB, free: 13.4 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.02e-05/0.4855, allocations: 29.7 kB / 1.311 GB, free: 13.36 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4857, allocations: 330.8 kB / 1.312 GB, free: 13.03 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.4859, allocations: 55.95 kB / 1.312 GB, free: 12.98 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.4861, allocations: 86.7 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.4865, allocations: 148.1 kB / 1.312 GB, free: 12.72 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.4865, allocations: 7.938 kB / 1.312 GB, free: 12.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005202/0.487, allocations: 219.3 kB / 1.312 GB, free: 12.49 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.487, allocations: 37.7 kB / 1.312 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.487, allocations: 0 / 1.312 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.487, allocations: 4 kB / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.4872, allocations: 15.98 kB / 1.312 GB, free: 12.43 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.4872, allocations: 3.984 kB / 1.312 GB, free: 12.42 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.4874, allocations: 43.84 kB / 1.312 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.4874, allocations: 8 kB / 1.312 GB, free: 12.37 MB / 1.014 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.0001094/0.4875, allocations: 126.5 kB / 1.313 GB, free: 12.24 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.396e-05/0.4876, allocations: 4 kB / 1.313 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.4876, allocations: 12.36 kB / 1.313 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.4876, allocations: 0 / 1.313 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4876, allocations: 0 / 1.313 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4876, allocations: 0 / 1.313 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.4878, allocations: 156.6 kB / 1.313 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.4878, allocations: 0 / 1.313 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.4879, allocations: 27.91 kB / 1.313 GB, free: 12 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4879, allocations: 0 / 1.313 GB, free: 12 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.4879, allocations: 4 kB / 1.313 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4879, allocations: 4 kB / 1.313 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4879, allocations: 0 / 1.313 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.4883, allocations: 149 kB / 1.313 GB, free: 11.82 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.096e-05/0.4883, allocations: 3.953 kB / 1.313 GB, free: 11.82 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.4883, allocations: 4 kB / 1.313 GB, free: 11.82 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.891e-05/0.4884, allocations: 11.98 kB / 1.313 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.4884, allocations: 7.984 kB / 1.313 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.4884, allocations: 0 / 1.313 GB, free: 11.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.238e-05/0.4885, allocations: 99.27 kB / 1.313 GB, free: 11.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.4885, allocations: 0 / 1.313 GB, free: 11.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002249/0.4887, allocations: 20 kB / 1.313 GB, free: 11.68 MB / 1.014 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.0001933/0.4889, allocations: 111.3 kB / 1.313 GB, free: 11.56 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004944/0.4894, allocations: 175.3 kB / 1.313 GB, free: 11.38 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4894, allocations: 0 / 1.313 GB, free: 11.38 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.4896, allocations: 56.02 kB / 1.313 GB, free: 11.32 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.4898, allocations: 23.84 kB / 1.313 GB, free: 11.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004525/0.4903, allocations: 158.1 kB / 1.313 GB, free: 11.12 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.4906, allocations: 0.6885 MB / 1.314 GB, free: 10.41 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.353e-05/0.4907, allocations: 11.75 kB / 1.314 GB, free: 10.39 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.379e-05/0.4907, allocations: 15.42 kB / 1.314 GB, free: 10.38 MB / 1.014 GB Notification: Performance of SimCode: time 3.11e-07/0.4907, allocations: 0 / 1.314 GB, free: 10.38 MB / 1.014 GB Notification: Performance of Templates: time 0.004996/0.4957, allocations: 1.604 MB / 1.316 GB, free: 8.793 MB / 1.014 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.940983938984573]