Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001336/0.001336, 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.001506/0.001506, allocations: 210.5 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.575/1.575, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.888/2.888, allocations: 476 MB / 0.7699 GB, free: 4.707 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [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.002175/0.002175, allocations: 67.53 kB / 1.117 GB, free: 41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3595, allocations: 170 MB / 1.283 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002554/0.362, allocations: 0.7626 MB / 1.283 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002115/0.3641, allocations: 1.176 MB / 1.285 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.418e-05/0.3642, allocations: 0 / 1.285 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.446e-05/0.3642, allocations: 3.938 kB / 1.285 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.471e-05/0.3643, allocations: 15.84 kB / 1.285 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005816/0.3649, allocations: 135.4 kB / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.3652, allocations: 127.8 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.3653, allocations: 19.48 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.3654, allocations: 47.91 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.3655, allocations: 47.83 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.3656, allocations: 8 kB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.373e-05/0.3656, allocations: 31.97 kB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.649e-05/0.3657, allocations: 15.92 kB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.067e-05/0.3658, allocations: 43.84 kB / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.366, allocations: 109.4 kB / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.366, allocations: 0 / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.665e-06/0.366, allocations: 4 kB / 1.285 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.366, allocations: 7.938 kB / 1.285 GB, free: 9.824 MB / 0.9825 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.000856/0.3669, allocations: 353.9 kB / 1.285 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.3669, allocations: 8.031 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.367, allocations: 34.75 kB / 1.285 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.123e-05/0.367, allocations: 12.89 kB / 1.285 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.3672, allocations: 118.5 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.3672, allocations: 4.375 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.3672, allocations: 8.375 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.3675, allocations: 78.2 kB / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3675, allocations: 7.938 kB / 1.286 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.3675, allocations: 4 kB / 1.286 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3675, allocations: 0 / 1.286 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.3678, allocations: 75.8 kB / 1.286 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/0.3683, allocations: 279.8 kB / 1.286 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.3685, allocations: 58.53 kB / 1.286 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.3687, allocations: 40.91 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.3687, allocations: 0 / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.3691, allocations: 99.28 kB / 1.286 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.3691, allocations: 0 / 1.286 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006486/0.3697, allocations: 169.5 kB / 1.286 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.3698, allocations: 55.41 kB / 1.286 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.3699, allocations: 121.5 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.3699, allocations: 25.7 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.835e-05/0.37, allocations: 96.12 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.37, allocations: 19.92 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.3701, allocations: 37.7 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002015/0.3703, allocations: 326.8 kB / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.3706, allocations: 89.58 kB / 1.287 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.3708, allocations: 116.2 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003718/0.3712, allocations: 136.2 kB / 1.287 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3712, allocations: 0 / 1.287 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005556/0.3718, allocations: 252.9 kB / 1.288 GB, free: 7 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.832e-05/0.3718, allocations: 37.69 kB / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3718, allocations: 0 / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.3718, allocations: 4.062 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.372, allocations: 23.92 kB / 1.288 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.372, allocations: 0 / 1.288 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.3722, allocations: 43.88 kB / 1.288 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.3722, allocations: 4 kB / 1.288 GB, free: 6.883 MB / 0.9825 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.0002149/0.3724, allocations: 121.8 kB / 1.288 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.3725, allocations: 7.953 kB / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.3725, allocations: 16.36 kB / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3725, allocations: 0 / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3725, allocations: 0 / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3725, allocations: 4 kB / 1.288 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.3727, allocations: 148.7 kB / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.3727, allocations: 0 / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.3728, allocations: 24.23 kB / 1.288 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.3728, allocations: 0 / 1.288 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3728, allocations: 4 kB / 1.288 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3728, allocations: 96 / 1.288 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3728, allocations: 7.938 kB / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003871/0.3732, allocations: 152.9 kB / 1.288 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.3732, allocations: 7.953 kB / 1.288 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.3732, allocations: 11.98 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.3733, allocations: 7.984 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.3733, allocations: 7.984 kB / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.3734, allocations: 4 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.551e-05/0.3734, allocations: 99.27 kB / 1.288 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3734, allocations: 0 / 1.288 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002159/0.3736, allocations: 20 kB / 1.288 GB, free: 6.18 MB / 0.9825 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.0007533/0.3744, allocations: 0.6865 MB / 1.289 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005139/0.3749, allocations: 208.9 kB / 1.289 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3749, allocations: 0 / 1.289 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.3751, allocations: 47.95 kB / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.3753, allocations: 10.8 kB / 1.289 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.3778, allocations: 1.763 MB / 1.291 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.127e-05/0.3778, allocations: 71.34 kB / 1.291 GB, free: 3.203 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.033e-05/0.3779, allocations: 11.92 kB / 1.291 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.079e-05/0.3779, allocations: 19.44 kB / 1.291 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.3779, allocations: 0 / 1.291 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.4089, allocations: 3.366 MB / 1.294 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.89, allocations: 6.062 kB / 1.294 GB, free: 15.96 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable switch1.u1 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.873648596927524]