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.001905/0.001905, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.002402/0.002402, allocations: 217.2 kB / 22.99 MB, free: 4.914 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.402/3.402, allocations: 0.5107 GB / 0.8166 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.002112/0.002112, allocations: 69.27 kB / 1.187 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3555, allocations: 181.9 MB / 1.365 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002526/0.3581, allocations: 0.7611 MB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001907/0.36, allocations: 1.172 MB / 1.367 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.498e-05/0.36, allocations: 3.938 kB / 1.367 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.3601, allocations: 3.938 kB / 1.367 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.445e-05/0.3602, allocations: 15.86 kB / 1.367 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005431/0.3607, allocations: 137.9 kB / 1.367 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.361, allocations: 127.7 kB / 1.367 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.3611, allocations: 11.98 kB / 1.367 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.3613, allocations: 51.91 kB / 1.367 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.3614, allocations: 43.81 kB / 1.367 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.3615, allocations: 12 kB / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.3616, allocations: 23.98 kB / 1.367 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.71e-05/0.3616, allocations: 19.86 kB / 1.367 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.3617, allocations: 39.91 kB / 1.367 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.362, allocations: 127.5 kB / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.362, allocations: 0 / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.204e-06/0.362, allocations: 0 / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.362, allocations: 0 / 1.367 GB, free: 11 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.000898/0.3629, allocations: 347.8 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.363, allocations: 11.97 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.495e-05/0.3631, allocations: 12.89 kB / 1.368 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3632, allocations: 114.4 kB / 1.368 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.3633, allocations: 8.375 kB / 1.368 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.3633, allocations: 8.375 kB / 1.368 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/0.3636, allocations: 82.17 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3636, allocations: 192 / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.3636, allocations: 7.938 kB / 1.368 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3636, allocations: 3.984 kB / 1.368 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.364, allocations: 71.92 kB / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006648/0.3646, allocations: 260.4 kB / 1.368 GB, free: 9.992 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.3648, allocations: 54.48 kB / 1.368 GB, free: 9.93 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.365, allocations: 40.91 kB / 1.368 GB, free: 9.887 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.365, allocations: 0 / 1.368 GB, free: 9.887 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003927/0.3654, allocations: 107.2 kB / 1.368 GB, free: 9.77 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.943e-06/0.3654, allocations: 4 kB / 1.368 GB, free: 9.766 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0006872/0.3661, allocations: 157.6 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.3662, allocations: 51.41 kB / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3663, allocations: 128.9 kB / 1.369 GB, free: 9.406 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.3664, allocations: 29.7 kB / 1.369 GB, free: 9.371 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.3665, allocations: 96.14 kB / 1.369 GB, free: 9.273 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.3665, allocations: 19.89 kB / 1.369 GB, free: 9.254 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.807e-05/0.3666, allocations: 33.7 kB / 1.369 GB, free: 9.215 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3668, allocations: 318.8 kB / 1.369 GB, free: 8.895 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.367, allocations: 85.64 kB / 1.369 GB, free: 8.805 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.3673, allocations: 116.2 kB / 1.369 GB, free: 8.676 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.3677, allocations: 144.2 kB / 1.369 GB, free: 8.52 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3677, allocations: 3.938 kB / 1.369 GB, free: 8.516 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005886/0.3683, allocations: 248.9 kB / 1.37 GB, free: 8.254 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.3683, allocations: 37.77 kB / 1.37 GB, free: 8.211 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3683, allocations: 4 kB / 1.37 GB, free: 8.207 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3683, allocations: 96 / 1.37 GB, free: 8.207 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.3685, allocations: 27.84 kB / 1.37 GB, free: 8.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.3685, allocations: 0 / 1.37 GB, free: 8.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/0.3687, allocations: 43.84 kB / 1.37 GB, free: 8.137 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.3688, allocations: 7.984 kB / 1.37 GB, free: 8.129 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.0001123/0.3689, allocations: 125.8 kB / 1.37 GB, free: 7.996 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.3689, allocations: 0 / 1.37 GB, free: 7.996 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.3689, allocations: 16.31 kB / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3689, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3689, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3689, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.3691, allocations: 129.2 kB / 1.37 GB, free: 7.82 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3691, allocations: 0 / 1.37 GB, free: 7.82 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.3692, allocations: 15.98 kB / 1.37 GB, free: 7.805 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3692, allocations: 0 / 1.37 GB, free: 7.805 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.3692, allocations: 8 kB / 1.37 GB, free: 7.797 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3692, allocations: 7.938 kB / 1.37 GB, free: 7.789 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3692, allocations: 4.297 kB / 1.37 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.3696, allocations: 145 kB / 1.37 GB, free: 7.625 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.3696, allocations: 11.94 kB / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.3697, allocations: 0 / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.458e-05/0.3697, allocations: 15.98 kB / 1.37 GB, free: 7.598 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.3698, allocations: 7.984 kB / 1.37 GB, free: 7.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.3698, allocations: 4 kB / 1.37 GB, free: 7.586 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.745e-05/0.3699, allocations: 91.27 kB / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3699, allocations: 0 / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002266/0.3701, allocations: 24 kB / 1.37 GB, free: 7.473 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.0001823/0.3703, allocations: 99.23 kB / 1.37 GB, free: 7.367 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005351/0.3708, allocations: 208.9 kB / 1.371 GB, free: 7.145 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3708, allocations: 0 / 1.371 GB, free: 7.145 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.371, allocations: 47.91 kB / 1.371 GB, free: 7.098 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.3712, allocations: 19.86 kB / 1.371 GB, free: 7.078 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004253/0.3717, allocations: 187.8 kB / 1.371 GB, free: 6.863 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.813e-05/0.3717, allocations: 75.45 kB / 1.371 GB, free: 6.77 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.3718, allocations: 15.44 kB / 1.371 GB, free: 6.754 MB / 1.061 GB Notification: Performance of SimCode: time 3.61e-07/0.3718, allocations: 0 / 1.371 GB, free: 6.754 MB / 1.061 GB Notification: Performance of Templates: time 0.003535/0.3753, allocations: 1.338 MB / 1.372 GB, free: 5.43 MB / 1.061 GB " [Timeout remaining time 300] 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/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.46758728241548]