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.001351/0.001351, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.00161/0.00161, allocations: 215.2 kB / 22.25 MB, free: 5.117 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 MB, free: 8.023 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.274/3.274, allocations: 0.49 GB / 0.7951 GB, free: 33.25 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.003066/0.003066, allocations: 66.95 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3943, allocations: 176.1 MB / 1.326 GB, free: 1.934 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002104/0.3964, allocations: 0.7953 MB / 1.327 GB, free: 1.141 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001732/0.3981, allocations: 1.198 MB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.3982, allocations: 0 / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.935e-05/0.3982, allocations: 11.81 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.81e-05/0.3983, allocations: 15.86 kB / 1.328 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.3987, allocations: 135.2 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.3989, allocations: 131.7 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.037e-05/0.399, allocations: 11.98 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.3991, allocations: 51.91 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.3992, allocations: 47.88 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.3992, allocations: 12 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.389e-05/0.3993, allocations: 31.91 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.3993, allocations: 19.92 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.187e-05/0.3994, allocations: 39.86 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.3996, allocations: 119.8 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3996, allocations: 4 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3996, allocations: 4 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.3996, allocations: 0 / 1.328 GB, free: 15.31 MB / 1.029 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.0006816/0.4003, allocations: 351.7 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4004, allocations: 8.031 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.593e-05/0.4004, allocations: 34.75 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.4005, allocations: 8.938 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.4006, allocations: 114.5 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.4006, allocations: 4.375 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.4006, allocations: 16.3 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003042/0.4009, allocations: 82.14 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4009, allocations: 3.938 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.4009, allocations: 4 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.401, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.4012, allocations: 63.92 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.4018, allocations: 307.7 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.402, allocations: 58.47 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.4021, allocations: 36.92 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.4022, allocations: 0 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/0.4025, allocations: 103.3 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 3.777e-06/0.4025, allocations: 3.984 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006247/0.4032, allocations: 173.6 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.4032, allocations: 51.41 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.4033, allocations: 120.1 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.4034, allocations: 29.7 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.375e-05/0.4035, allocations: 104.1 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.4035, allocations: 7.906 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.696e-05/0.4036, allocations: 37.7 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.4037, allocations: 326.7 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.404, allocations: 59.95 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.4042, allocations: 86.58 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/0.4046, allocations: 144.1 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4046, allocations: 0 / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005336/0.4051, allocations: 211.2 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.849e-05/0.4052, allocations: 41.69 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4052, allocations: 4.062 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.4052, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.4053, allocations: 15.98 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.4053, allocations: 4.062 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.4055, allocations: 43.88 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.4056, allocations: 4 kB / 1.331 GB, free: 12.46 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.0001169/0.4057, allocations: 130.2 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.4057, allocations: 7.953 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.4057, allocations: 12.36 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4057, allocations: 0 / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4057, allocations: 3.938 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.4057, allocations: 4 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.4059, allocations: 156.6 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4059, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.406, allocations: 19.97 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.406, allocations: 4 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.406, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.406, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.406, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/0.4064, allocations: 156.9 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.4064, allocations: 11.95 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.4064, allocations: 0 / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.532e-05/0.4065, allocations: 15.98 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.4066, allocations: 3.984 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.4066, allocations: 4.125 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.403e-05/0.4066, allocations: 92.77 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4066, allocations: 4 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002184/0.4069, allocations: 24 kB / 1.332 GB, free: 11.75 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.0008102/0.4077, allocations: 0.6904 MB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004991/0.4082, allocations: 179.3 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.4082, allocations: 3.938 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.4084, allocations: 43.91 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.4086, allocations: 17.8 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.4111, allocations: 1.633 MB / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.4115, allocations: 0.6898 MB / 1.335 GB, free: 8.328 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.739e-05/0.4115, allocations: 7.984 kB / 1.335 GB, free: 8.32 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.346e-05/0.4115, allocations: 23.44 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.4115, allocations: 0 / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.4413, allocations: 2.815 MB / 1.338 GB, free: 5.617 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.39, allocations: 10.89 kB / 1.338 GB, free: 5.613 MB / 1.029 GB " [Timeout remaining time 289] (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: 18.320948878999843]