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.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.001634/0.001634, allocations: 110.4 kB / 17.08 MB, free: 6.012 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.00191/0.00191, allocations: 191.7 kB / 20.03 MB, free: 3.082 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.493/1.493, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.074/3.074, allocations: 489.3 MB / 0.7687 GB, free: 3.797 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 67.91 kB / 1.103 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.043/1.045, allocations: 163.8 MB / 1.263 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001826/1.047, allocations: 0.7948 MB / 1.263 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001403/1.048, allocations: 1.154 MB / 1.265 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.953e-05/1.049, allocations: 3.531 kB / 1.265 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/1.049, allocations: 4.641 kB / 1.265 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.217e-05/1.049, allocations: 10.84 kB / 1.265 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/1.049, allocations: 134 kB / 1.265 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002025/1.049, allocations: 139.5 kB / 1.265 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.079e-05/1.049, allocations: 13.58 kB / 1.265 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.664e-05/1.05, allocations: 54.59 kB / 1.265 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/1.05, allocations: 53.47 kB / 1.265 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/1.05, allocations: 11.62 kB / 1.265 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.205e-05/1.05, allocations: 24.7 kB / 1.265 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/1.05, allocations: 13.25 kB / 1.265 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.511e-05/1.05, allocations: 47.61 kB / 1.265 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002188/1.05, allocations: 115.3 kB / 1.265 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/1.05, allocations: 4.656 kB / 1.265 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.574e-06/1.05, allocations: 4.844 kB / 1.265 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.671e-06/1.05, allocations: 3.938 kB / 1.265 GB, free: 6.395 MB / 0.9981 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.000595/1.051, allocations: 424.2 kB / 1.266 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/1.051, allocations: 9.25 kB / 1.266 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/1.051, allocations: 10.58 kB / 1.266 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.39e-05/1.051, allocations: 173.4 kB / 1.266 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/1.051, allocations: 8.359 kB / 1.266 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/1.051, allocations: 10.39 kB / 1.266 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/1.051, allocations: 79.56 kB / 1.266 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/1.051, allocations: 4.188 kB / 1.266 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/1.051, allocations: 5.438 kB / 1.266 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/1.051, allocations: 0.6562 kB / 1.266 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003162/1.052, allocations: 75.33 kB / 1.266 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/1.052, allocations: 327.9 kB / 1.266 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/1.052, allocations: 55.16 kB / 1.266 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/1.052, allocations: 43.8 kB / 1.266 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/1.052, allocations: 1.406 kB / 1.266 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/1.053, allocations: 99.19 kB / 1.266 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/1.053, allocations: 0 / 1.266 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0006204/1.053, allocations: 160 kB / 1.267 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/1.053, allocations: 57.62 kB / 1.267 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.531e-05/1.053, allocations: 131.8 kB / 1.267 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/1.053, allocations: 27.3 kB / 1.267 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.162e-05/1.054, allocations: 90.48 kB / 1.267 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/1.054, allocations: 23.27 kB / 1.267 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-05/1.054, allocations: 31.55 kB / 1.267 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.642e-05/1.054, allocations: 323 kB / 1.267 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/1.054, allocations: 66.14 kB / 1.267 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/1.054, allocations: 81.58 kB / 1.267 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/1.055, allocations: 143 kB / 1.267 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/1.055, allocations: 0.8125 kB / 1.267 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005541/1.055, allocations: 210.9 kB / 1.268 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/1.055, allocations: 38.84 kB / 1.268 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/1.055, allocations: 0.7188 kB / 1.268 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/1.055, allocations: 6.703 kB / 1.268 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/1.055, allocations: 15.94 kB / 1.268 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.964e-06/1.055, allocations: 9.469 kB / 1.268 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/1.056, allocations: 43.86 kB / 1.268 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/1.056, allocations: 6.078 kB / 1.268 GB, free: 4.277 MB / 0.9981 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 6.526e-05/1.056, allocations: 123.5 kB / 1.268 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/1.056, allocations: 12.42 kB / 1.268 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/1.056, allocations: 11.33 kB / 1.268 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/1.056, allocations: 0.9062 kB / 1.268 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/1.056, allocations: 320 / 1.268 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.056, allocations: 5.297 kB / 1.268 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/1.056, allocations: 187.9 kB / 1.268 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.056, allocations: 3.938 kB / 1.268 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/1.056, allocations: 20.44 kB / 1.268 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/1.056, allocations: 0.7812 kB / 1.268 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/1.056, allocations: 1.531 kB / 1.268 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/1.056, allocations: 4.75 kB / 1.268 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.056, allocations: 0.7188 kB / 1.268 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/1.056, allocations: 148.7 kB / 1.268 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/1.056, allocations: 79.28 kB / 1.268 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/1.056, allocations: 9.453 kB / 1.268 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.743e-05/1.057, allocations: 12.41 kB / 1.268 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/1.057, allocations: 6.016 kB / 1.268 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/1.057, allocations: 1.656 kB / 1.268 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.28e-05/1.057, allocations: 97.89 kB / 1.269 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.057, allocations: 0 / 1.269 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000224/1.057, allocations: 27.92 kB / 1.269 GB, free: 3.637 MB / 0.9981 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.0001601/1.057, allocations: 109.6 kB / 1.269 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005082/1.058, allocations: 189.2 kB / 1.269 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.058, allocations: 0 / 1.269 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001932/1.058, allocations: 52.16 kB / 1.269 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/1.058, allocations: 21.75 kB / 1.269 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003297/1.058, allocations: 183.3 kB / 1.269 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/1.059, allocations: 0.6874 MB / 1.27 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.563e-05/1.059, allocations: 11.75 kB / 1.27 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of SimCode: time 7.91e-07/1.059, allocations: 0 / 1.27 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of Templates: time 0.00329/1.062, allocations: 1.327 MB / 1.271 GB, free: 2.441 MB / 0.9981 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.681147904135287]