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.001368/0.001368, allocations: 77.55 kB / 19.76 MB, free: 2.031 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.001438/0.001438, allocations: 159.6 kB / 23.01 MB, free: 4.949 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.537/1.537, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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 2.902/2.902, allocations: 394.2 MB / 0.6387 GB, free: 11.91 MB / 0.6075 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.002529/0.002529, allocations: 79.81 kB / 1.009 GB, free: 14.42 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.027/1.029, allocations: 181.8 MB / 1.187 GB, free: 16.25 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001941/1.031, allocations: 0.7749 MB / 1.187 GB, free: 15.76 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001393/1.033, allocations: 1.165 MB / 1.189 GB, free: 14.92 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.37e-05/1.033, allocations: 0 / 1.189 GB, free: 14.92 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.868e-05/1.033, allocations: 5.922 kB / 1.189 GB, free: 14.91 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.34e-05/1.033, allocations: 18.69 kB / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000488/1.033, allocations: 137 kB / 1.189 GB, free: 14.83 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.000201/1.034, allocations: 130.6 kB / 1.189 GB, free: 14.77 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 9.646e-05/1.034, allocations: 15.23 kB / 1.189 GB, free: 14.77 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/1.034, allocations: 62.38 kB / 1.189 GB, free: 14.74 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/1.034, allocations: 47.56 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.245e-05/1.034, allocations: 11.97 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.572e-05/1.034, allocations: 23.62 kB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.662e-05/1.034, allocations: 9.703 kB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 7.162e-05/1.034, allocations: 38.25 kB / 1.189 GB, free: 14.69 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002178/1.034, allocations: 124.3 kB / 1.189 GB, free: 14.65 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/1.034, allocations: 0 / 1.189 GB, free: 14.65 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.304e-06/1.034, allocations: 1 kB / 1.189 GB, free: 14.65 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.586e-06/1.034, allocations: 0.5625 kB / 1.189 GB, free: 14.65 MB / 1.076 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.0007638/1.035, allocations: 351.2 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/1.035, allocations: 10.66 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.359e-05/1.035, allocations: 10.17 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/1.035, allocations: 119.8 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/1.035, allocations: 8.109 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/1.035, allocations: 10.47 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/1.036, allocations: 75.52 kB / 1.19 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/1.036, allocations: 1.281 kB / 1.19 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/1.036, allocations: 7.938 kB / 1.19 GB, free: 14.13 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/1.036, allocations: 1.75 kB / 1.19 GB, free: 14.13 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/1.036, allocations: 70.34 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004078/1.036, allocations: 254 kB / 1.19 GB, free: 13.89 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/1.037, allocations: 52.95 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/1.037, allocations: 48.48 kB / 1.19 GB, free: 13.84 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/1.037, allocations: 3.938 kB / 1.19 GB, free: 13.84 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003123/1.037, allocations: 101 kB / 1.19 GB, free: 13.77 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/1.037, allocations: 0 / 1.19 GB, free: 13.77 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0006423/1.038, allocations: 168.2 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/1.038, allocations: 53.19 kB / 1.19 GB, free: 13.65 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.673e-05/1.038, allocations: 124.5 kB / 1.191 GB, free: 13.54 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/1.038, allocations: 27.95 kB / 1.191 GB, free: 13.5 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/1.038, allocations: 94.56 kB / 1.191 GB, free: 13.41 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/1.038, allocations: 15.48 kB / 1.191 GB, free: 13.4 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.81e-05/1.038, allocations: 36 kB / 1.191 GB, free: 13.38 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.587e-05/1.038, allocations: 315.1 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/1.038, allocations: 94.25 kB / 1.191 GB, free: 13.02 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/1.039, allocations: 115.4 kB / 1.191 GB, free: 12.94 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003683/1.039, allocations: 151.6 kB / 1.191 GB, free: 12.85 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/1.039, allocations: 3.938 kB / 1.191 GB, free: 12.85 MB / 1.076 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005441/1.039, allocations: 243.8 kB / 1.192 GB, free: 12.71 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/1.04, allocations: 35.16 kB / 1.192 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/1.04, allocations: 1.25 kB / 1.192 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/1.04, allocations: 2.047 kB / 1.192 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/1.04, allocations: 24.5 kB / 1.192 GB, free: 12.67 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/1.04, allocations: 0.7031 kB / 1.192 GB, free: 12.67 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/1.04, allocations: 43.95 kB / 1.192 GB, free: 12.66 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/1.04, allocations: 6.609 kB / 1.192 GB, free: 12.66 MB / 1.076 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.779e-05/1.04, allocations: 121.2 kB / 1.192 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/1.04, allocations: 3.078 kB / 1.192 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.939e-05/1.04, allocations: 10.7 kB / 1.192 GB, free: 12.53 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/1.04, allocations: 5.531 kB / 1.192 GB, free: 12.53 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.04, allocations: 0.5156 kB / 1.192 GB, free: 12.53 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/1.04, allocations: 1.625 kB / 1.192 GB, free: 12.53 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.299e-05/1.04, allocations: 130.1 kB / 1.192 GB, free: 12.39 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/1.04, allocations: 0.9688 kB / 1.192 GB, free: 12.39 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/1.04, allocations: 20.28 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/1.04, allocations: 0.6094 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/1.04, allocations: 1.062 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/1.04, allocations: 1.656 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/1.04, allocations: 0 / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/1.041, allocations: 162.5 kB / 1.192 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.18e-05/1.041, allocations: 6.984 kB / 1.192 GB, free: 12.28 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/1.041, allocations: 1.703 kB / 1.192 GB, free: 12.28 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.049e-05/1.041, allocations: 10.86 kB / 1.192 GB, free: 12.28 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/1.041, allocations: 11.05 kB / 1.192 GB, free: 12.28 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/1.041, allocations: 1.859 kB / 1.192 GB, free: 12.28 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.606e-05/1.041, allocations: 92.94 kB / 1.192 GB, free: 12.2 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/1.041, allocations: 5.312 kB / 1.192 GB, free: 12.2 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002488/1.041, allocations: 28.53 kB / 1.192 GB, free: 12.19 MB / 1.076 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.0001528/1.041, allocations: 102.2 kB / 1.192 GB, free: 12.1 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005168/1.042, allocations: 205.3 kB / 1.193 GB, free: 11.97 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.042, allocations: 0 / 1.193 GB, free: 11.97 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001815/1.042, allocations: 45.67 kB / 1.193 GB, free: 11.96 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/1.042, allocations: 25.16 kB / 1.193 GB, free: 11.95 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003592/1.043, allocations: 165 kB / 1.193 GB, free: 11.81 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.72e-05/1.043, allocations: 72.67 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.408e-05/1.043, allocations: 7.953 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/1.043, allocations: 12.31 kB / 1.193 GB, free: 11.73 MB / 1.076 GB Notification: Performance of SimCode: time 3.2e-07/1.043, allocations: 0 / 1.193 GB, free: 11.73 MB / 1.076 GB Notification: Performance of Templates: time 0.005148/1.048, allocations: 1.728 MB / 1.195 GB, free: 11.53 MB / 1.076 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 -s ida -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/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: 9.359812915907241]