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.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.001713/0.001713, allocations: 108 kB / 16.45 MB, free: 6.512 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.002096/0.002096, allocations: 212.2 kB / 19.43 MB, free: 3.648 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.693/1.693, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.448/3.448, allocations: 0.49 GB / 0.7916 GB, free: 33.37 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_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.002104/0.002104, allocations: 74.2 kB / 1.149 GB, free: 26.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.433/0.4351, allocations: 176.1 MB / 1.321 GB, free: 3.316 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00276/0.4379, allocations: 0.7893 MB / 1.322 GB, free: 2.535 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002177/0.4401, allocations: 1.182 MB / 1.323 GB, free: 1.34 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-05/0.4402, allocations: 4 kB / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.901e-05/0.4402, allocations: 3.938 kB / 1.323 GB, free: 1.332 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.4403, allocations: 19.86 kB / 1.323 GB, free: 1.312 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.441, allocations: 135.7 kB / 1.323 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.4413, allocations: 131.7 kB / 1.323 GB, free: 1.051 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.4414, allocations: 8 kB / 1.323 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.4416, allocations: 51.89 kB / 1.323 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.4417, allocations: 55.86 kB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.4417, allocations: 12 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.075e-05/0.4418, allocations: 20 kB / 1.323 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.172e-05/0.4419, allocations: 15.92 kB / 1.323 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.064e-05/0.4419, allocations: 47.83 kB / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.4422, allocations: 123.8 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.4422, allocations: 4 kB / 1.323 GB, free: 0.7188 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.557e-06/0.4422, allocations: 3.938 kB / 1.323 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.2e-05/0.4423, allocations: 0 / 1.323 GB, free: 0.7148 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.0009527/0.4432, allocations: 434.3 kB / 1.324 GB, free: 240 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.4433, allocations: 11.98 kB / 1.324 GB, free: 228 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.08e-05/0.4433, allocations: 38.75 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.4434, allocations: 8.938 kB / 1.324 GB, free: 172 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.4436, allocations: 169 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.4436, allocations: 12.3 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.4436, allocations: 4.375 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.4439, allocations: 86.19 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.4439, allocations: 3.938 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.444, allocations: 4 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.444, allocations: 3.938 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.4443, allocations: 63.92 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006012/0.4449, allocations: 336.6 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.4451, allocations: 54.53 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.4453, allocations: 44.84 kB / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.4453, allocations: 0 / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003038/0.4456, allocations: 95.34 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.4456, allocations: 0 / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006517/0.4462, allocations: 165.5 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.4463, allocations: 55.41 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.4464, allocations: 123.6 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.656e-05/0.4465, allocations: 33.69 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.978e-05/0.4466, allocations: 96.09 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.4466, allocations: 7.906 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.4467, allocations: 37.7 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4468, allocations: 318.8 kB / 1.326 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.4471, allocations: 67.94 kB / 1.326 GB, free: 14.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.4473, allocations: 78.59 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.4477, allocations: 152.2 kB / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4477, allocations: 0 / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006049/0.4483, allocations: 215.2 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/0.4484, allocations: 33.7 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4484, allocations: 0 / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.4484, allocations: 4.062 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.4485, allocations: 23.97 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.4486, allocations: 0 / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.4488, allocations: 39.98 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.4488, allocations: 7.938 kB / 1.326 GB, free: 13.66 MB / 1.029 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.0001175/0.449, allocations: 125.8 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.449, allocations: 11.95 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.659e-05/0.449, allocations: 8.375 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.449, allocations: 3.938 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.449, allocations: 320 / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.449, allocations: 3.938 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.4492, allocations: 189.6 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.4492, allocations: 3.984 kB / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.4493, allocations: 11.98 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.4493, allocations: 4 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.4493, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4493, allocations: 4 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4493, allocations: 0 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004439/0.4498, allocations: 152.9 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.858e-05/0.4498, allocations: 85.06 kB / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.4499, allocations: 0 / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.301e-05/0.4499, allocations: 23.95 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.45, allocations: 4 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.45, allocations: 4 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.814e-05/0.4501, allocations: 97.45 kB / 1.327 GB, free: 12.85 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4501, allocations: 0 / 1.327 GB, free: 12.85 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002597/0.4503, allocations: 23.98 kB / 1.327 GB, free: 12.82 MB / 1.029 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.0008431/0.4512, allocations: 0.6904 MB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005369/0.4517, allocations: 183.2 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4517, allocations: 0 / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.4519, allocations: 43.94 kB / 1.328 GB, free: 11.87 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.4521, allocations: 14.25 kB / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.4548, allocations: 1.653 MB / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.4551, allocations: 0.6885 MB / 1.33 GB, free: 9.387 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.395e-05/0.4552, allocations: 4 kB / 1.33 GB, free: 9.383 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.06e-05/0.4552, allocations: 19.44 kB / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of SimCode: time 6.31e-07/0.4552, allocations: 0 / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.483, allocations: 2.689 MB / 1.333 GB, free: 6.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.298/8.781, allocations: 12.27 kB / 1.333 GB, free: 6.762 MB / 1.029 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/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] "Error: Could not read variable switch1.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.124677970074117]