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.00181/0.00181, allocations: 103.5 kB / 16.45 MB, free: 6.504 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.002102/0.002102, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.551/1.551, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.453/3.453, allocations: 0.505 GB / 0.8066 GB, free: 23.14 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.002225/0.002225, allocations: 74.34 kB / 1.172 GB, free: 17.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3392, allocations: 180.2 MB / 1.348 GB, free: 10.11 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00217/0.3414, allocations: 0.6917 MB / 1.348 GB, free: 9.422 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001874/0.3432, allocations: 1.296 MB / 1.35 GB, free: 8.113 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.35e-05/0.3433, allocations: 4 kB / 1.35 GB, free: 8.109 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.075e-05/0.3433, allocations: 11.81 kB / 1.35 GB, free: 8.098 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.834e-05/0.3434, allocations: 15.84 kB / 1.35 GB, free: 8.082 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009622/0.3444, allocations: 314.2 kB / 1.35 GB, free: 7.785 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.3448, allocations: 251.6 kB / 1.35 GB, free: 7.539 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.3449, allocations: 16.17 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3451, allocations: 99.86 kB / 1.35 GB, free: 7.422 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.3453, allocations: 91.73 kB / 1.35 GB, free: 7.332 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.534e-05/0.3454, allocations: 20 kB / 1.351 GB, free: 7.312 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.3455, allocations: 43.91 kB / 1.351 GB, free: 7.27 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.834e-05/0.3455, allocations: 19.92 kB / 1.351 GB, free: 7.25 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.3456, allocations: 91.73 kB / 1.351 GB, free: 7.16 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003209/0.3459, allocations: 219.6 kB / 1.351 GB, free: 6.945 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3459, allocations: 0 / 1.351 GB, free: 6.945 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3459, allocations: 0 / 1.351 GB, free: 6.945 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.3459, allocations: 0 / 1.351 GB, free: 6.945 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.0007872/0.3467, allocations: 0.4884 MB / 1.351 GB, free: 6.391 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.3468, allocations: 11.98 kB / 1.351 GB, free: 6.379 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.3468, allocations: 30.75 kB / 1.351 GB, free: 6.34 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.894e-05/0.3469, allocations: 24.88 kB / 1.351 GB, free: 6.316 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.347, allocations: 172.3 kB / 1.352 GB, free: 6.109 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.3471, allocations: 16.36 kB / 1.352 GB, free: 6.094 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.3471, allocations: 12.38 kB / 1.352 GB, free: 6.082 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001416/0.3473, allocations: 57.98 kB / 1.352 GB, free: 6.02 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3473, allocations: 3.984 kB / 1.352 GB, free: 6.016 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.3473, allocations: 4 kB / 1.352 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.3473, allocations: 0 / 1.352 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.45e-05/0.3474, allocations: 27.92 kB / 1.352 GB, free: 5.984 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000655/0.348, allocations: 412.5 kB / 1.352 GB, free: 5.531 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 7.576e-05/0.3481, allocations: 34.56 kB / 1.352 GB, free: 5.488 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.711e-05/0.3481, allocations: 16.86 kB / 1.352 GB, free: 5.469 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.3481, allocations: 0 / 1.352 GB, free: 5.469 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.3484, allocations: 107.3 kB / 1.352 GB, free: 5.352 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3484, allocations: 0 / 1.352 GB, free: 5.352 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.000356/0.3487, allocations: 137.5 kB / 1.352 GB, free: 5.211 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.3488, allocations: 59.41 kB / 1.352 GB, free: 5.141 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.3489, allocations: 136 kB / 1.353 GB, free: 5 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.568e-05/0.349, allocations: 34.08 kB / 1.353 GB, free: 4.961 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.341e-05/0.3491, allocations: 96.12 kB / 1.353 GB, free: 4.863 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.3491, allocations: 23.92 kB / 1.353 GB, free: 4.84 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3492, allocations: 65.67 kB / 1.353 GB, free: 4.77 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3494, allocations: 330.7 kB / 1.353 GB, free: 4.438 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.3496, allocations: 83.95 kB / 1.353 GB, free: 4.355 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.3499, allocations: 147.5 kB / 1.353 GB, free: 4.191 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.3502, allocations: 235 kB / 1.354 GB, free: 3.922 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3502, allocations: 0 / 1.354 GB, free: 3.922 MB / 1.045 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006826/0.3509, allocations: 381.1 kB / 1.354 GB, free: 3.527 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 9.501e-05/0.351, allocations: 101.1 kB / 1.354 GB, free: 3.41 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.351, allocations: 0 / 1.354 GB, free: 3.41 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.351, allocations: 4.188 kB / 1.354 GB, free: 3.406 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.601e-05/0.351, allocations: 8 kB / 1.354 GB, free: 3.398 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.351, allocations: 0 / 1.354 GB, free: 3.398 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005247/0.3516, allocations: 83.8 kB / 1.354 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/0.3516, allocations: 15.98 kB / 1.354 GB, free: 3.301 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.000144/0.3517, allocations: 141.7 kB / 1.354 GB, free: 3.152 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.3518, allocations: 7.953 kB / 1.354 GB, free: 3.145 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.3518, allocations: 12.38 kB / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3518, allocations: 0 / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3518, allocations: 0 / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.3518, allocations: 0 / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.352, allocations: 193.5 kB / 1.354 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.352, allocations: 4 kB / 1.354 GB, free: 2.891 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.15e-05/0.352, allocations: 0 / 1.354 GB, free: 2.891 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.352, allocations: 4 kB / 1.354 GB, free: 2.887 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.3521, allocations: 8 kB / 1.354 GB, free: 2.879 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3521, allocations: 0 / 1.354 GB, free: 2.879 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3521, allocations: 0 / 1.354 GB, free: 2.879 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.3523, allocations: 140.9 kB / 1.355 GB, free: 2.723 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.293e-05/0.3523, allocations: 85 kB / 1.355 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.3524, allocations: 4 kB / 1.355 GB, free: 2.617 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.714e-05/0.3524, allocations: 7.984 kB / 1.355 GB, free: 2.609 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.3524, allocations: 8 kB / 1.355 GB, free: 2.602 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.3524, allocations: 15.98 kB / 1.355 GB, free: 2.586 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.401e-05/0.3525, allocations: 101 kB / 1.355 GB, free: 2.488 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3525, allocations: 0 / 1.355 GB, free: 2.488 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002907/0.3528, allocations: 44.05 kB / 1.355 GB, free: 2.445 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.0006311/0.3534, allocations: 0.6826 MB / 1.355 GB, free: 1.734 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000525/0.354, allocations: 322.1 kB / 1.356 GB, free: 1.383 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.354, allocations: 3.938 kB / 1.356 GB, free: 1.379 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 7.148e-05/0.354, allocations: 35.92 kB / 1.356 GB, free: 1.344 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3543, allocations: 24.53 kB / 1.356 GB, free: 1.32 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/0.3573, allocations: 2.075 MB / 1.358 GB, free: 15.1 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.3576, allocations: 0.6963 MB / 1.359 GB, free: 14.38 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.417e-05/0.3577, allocations: 8.422 kB / 1.359 GB, free: 14.37 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.888e-05/0.3577, allocations: 31.42 kB / 1.359 GB, free: 14.34 MB / 1.061 GB Notification: Performance of SimCode: time 4.71e-07/0.3577, allocations: 288 / 1.359 GB, free: 14.34 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.3874, allocations: 3.838 MB / 1.362 GB, free: 10.63 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.495, allocations: 7.688 kB / 1.362 GB, free: 10.62 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.733241623966023]