Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.001324/0.001324, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001474/0.001474, allocations: 217 kB / 22.25 MB, free: 5.082 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.988 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.405/3.405, allocations: 0.505 GB / 0.8101 GB, free: 22.01 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.002039/0.002039, allocations: 71.56 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3835, allocations: 180.2 MB / 1.353 GB, free: 8.449 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001974/0.3855, allocations: 0.7077 MB / 1.354 GB, free: 7.742 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001678/0.3871, allocations: 1.291 MB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.139e-05/0.3872, allocations: 4 kB / 1.355 GB, free: 6.434 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.774e-05/0.3872, allocations: 15.8 kB / 1.355 GB, free: 6.418 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.09e-05/0.3873, allocations: 19.86 kB / 1.355 GB, free: 6.398 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008319/0.3881, allocations: 314.3 kB / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.3885, allocations: 255.7 kB / 1.355 GB, free: 5.852 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.3886, allocations: 16.17 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.3887, allocations: 103.8 kB / 1.356 GB, free: 5.73 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.3889, allocations: 95.75 kB / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.271e-05/0.3889, allocations: 20 kB / 1.356 GB, free: 5.617 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.941e-05/0.389, allocations: 35.98 kB / 1.356 GB, free: 5.582 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.623e-05/0.389, allocations: 19.92 kB / 1.356 GB, free: 5.562 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.3892, allocations: 87.75 kB / 1.356 GB, free: 5.477 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.3894, allocations: 219.6 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3895, allocations: 0 / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3895, allocations: 0 / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3895, allocations: 0 / 1.356 GB, free: 5.262 MB / 1.045 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.0006014/0.3901, allocations: 423.1 kB / 1.356 GB, free: 4.801 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3901, allocations: 8.031 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.353e-05/0.3901, allocations: 30.75 kB / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.3902, allocations: 20.88 kB / 1.356 GB, free: 4.734 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.3903, allocations: 128.5 kB / 1.357 GB, free: 4.586 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.3904, allocations: 8.375 kB / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.992e-05/0.3904, allocations: 12.38 kB / 1.357 GB, free: 4.566 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.3905, allocations: 65.92 kB / 1.357 GB, free: 4.496 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3905, allocations: 0 / 1.357 GB, free: 4.496 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.3905, allocations: 3.984 kB / 1.357 GB, free: 4.492 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3905, allocations: 4 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.263e-05/0.3906, allocations: 20 kB / 1.357 GB, free: 4.469 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.3912, allocations: 387.5 kB / 1.357 GB, free: 4.047 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.436e-05/0.3912, allocations: 26.58 kB / 1.357 GB, free: 4.012 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.866e-05/0.3913, allocations: 20.94 kB / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-06/0.3913, allocations: 0 / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.3915, allocations: 115.3 kB / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.3915, allocations: 0 / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0003034/0.3918, allocations: 137.5 kB / 1.357 GB, free: 3.723 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.3918, allocations: 51.41 kB / 1.357 GB, free: 3.66 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.3919, allocations: 133.8 kB / 1.357 GB, free: 3.52 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.392, allocations: 37.7 kB / 1.358 GB, free: 3.477 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.3921, allocations: 92.12 kB / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.3921, allocations: 19.86 kB / 1.358 GB, free: 3.363 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.3922, allocations: 69.67 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3923, allocations: 326.8 kB / 1.358 GB, free: 2.961 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.3925, allocations: 87.95 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.3927, allocations: 135.8 kB / 1.358 GB, free: 2.723 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.393, allocations: 243 kB / 1.358 GB, free: 2.445 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.393, allocations: 4 kB / 1.358 GB, free: 2.441 MB / 1.045 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005975/0.3936, allocations: 381.2 kB / 1.359 GB, free: 2.047 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.114e-05/0.3937, allocations: 98.5 kB / 1.359 GB, free: 1.934 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3937, allocations: 4 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.3937, allocations: 0 / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.057e-05/0.3938, allocations: 15.91 kB / 1.359 GB, free: 1.914 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3938, allocations: 4.375 kB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004881/0.3943, allocations: 87.98 kB / 1.359 GB, free: 1.824 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.3943, allocations: 15.98 kB / 1.359 GB, free: 1.809 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001276/0.3944, allocations: 137.7 kB / 1.359 GB, free: 1.664 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.659e-05/0.3945, allocations: 11.89 kB / 1.359 GB, free: 1.652 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/0.3945, allocations: 12.36 kB / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3945, allocations: 4 kB / 1.359 GB, free: 1.637 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3945, allocations: 0 / 1.359 GB, free: 1.637 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3945, allocations: 4 kB / 1.359 GB, free: 1.633 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3947, allocations: 156.7 kB / 1.359 GB, free: 1.438 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.3947, allocations: 0 / 1.359 GB, free: 1.438 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.766e-05/0.3947, allocations: 11.98 kB / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3947, allocations: 0 / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.3947, allocations: 0 / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3947, allocations: 0 / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3947, allocations: 0 / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.3949, allocations: 148.9 kB / 1.36 GB, free: 1.262 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.658e-05/0.3949, allocations: 11.89 kB / 1.36 GB, free: 1.25 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.3949, allocations: 4 kB / 1.36 GB, free: 1.246 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.449e-05/0.3949, allocations: 4 kB / 1.36 GB, free: 1.242 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.395, allocations: 3.984 kB / 1.36 GB, free: 1.238 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.395, allocations: 11.98 kB / 1.36 GB, free: 1.227 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.64e-05/0.3951, allocations: 96.95 kB / 1.36 GB, free: 1.133 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3951, allocations: 0 / 1.36 GB, free: 1.133 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002698/0.3953, allocations: 47.95 kB / 1.36 GB, free: 1.086 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005202/0.3959, allocations: 0.6825 MB / 1.36 GB, free: 384 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004656/0.3963, allocations: 326.2 kB / 1.361 GB, free: 20 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3963, allocations: 7.875 kB / 1.361 GB, free: 12 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 7.672e-05/0.3964, allocations: 36.3 kB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.3967, allocations: 24.2 kB / 1.361 GB, free: 15.95 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.3992, allocations: 2.055 MB / 1.363 GB, free: 13.75 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.3995, allocations: 0.7002 MB / 1.363 GB, free: 13.03 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.265e-05/0.3996, allocations: 4.438 kB / 1.363 GB, free: 13.02 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.144e-05/0.3996, allocations: 31.42 kB / 1.363 GB, free: 12.99 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.3996, allocations: 0 / 1.363 GB, free: 12.99 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03184/0.4314, allocations: 3.98 MB / 1.367 GB, free: 9.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.12, allocations: 4 kB / 1.367 GB, free: 9.176 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable logicalSwitch.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.280640826999843]