Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001852/0.001852, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002328/0.002328, allocations: 217.1 kB / 22.25 MB, free: 4.855 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.56/1.56, allocations: 230.6 MB / 256 MB, free: 7.785 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.872/2.872, allocations: 476 MB / 0.7699 GB, free: 4.703 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.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_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.00223/0.00223, allocations: 65.3 kB / 1.117 GB, free: 41.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3291, allocations: 170 MB / 1.283 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002227/0.3313, allocations: 0.6899 MB / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00173/0.333, allocations: 1.274 MB / 1.284 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.602e-05/0.3331, allocations: 4 kB / 1.284 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.395e-05/0.3331, allocations: 3.938 kB / 1.285 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.381e-05/0.3332, allocations: 23.84 kB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008511/0.3341, allocations: 308.2 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.3344, allocations: 259.5 kB / 1.285 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.3345, allocations: 17.86 kB / 1.285 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.3347, allocations: 95.88 kB / 1.285 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.3348, allocations: 83.73 kB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.951e-05/0.3349, allocations: 24 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.335, allocations: 35.97 kB / 1.285 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.933e-05/0.335, allocations: 19.94 kB / 1.285 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.3351, allocations: 79.8 kB / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.3354, allocations: 218.9 kB / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3355, allocations: 0 / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3355, allocations: 3.938 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.3355, allocations: 0 / 1.286 GB, free: 9.273 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.0005967/0.3361, allocations: 423.2 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.3361, allocations: 8.031 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.267e-05/0.3361, allocations: 30.75 kB / 1.286 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.3362, allocations: 20.89 kB / 1.286 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.3363, allocations: 118.4 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3363, allocations: 12.38 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.3364, allocations: 12.38 kB / 1.286 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.3365, allocations: 65.92 kB / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3365, allocations: 0 / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-06/0.3365, allocations: 0 / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.3365, allocations: 0 / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.37e-05/0.3366, allocations: 23.97 kB / 1.286 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005446/0.3371, allocations: 343.7 kB / 1.287 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.746e-05/0.3372, allocations: 38.5 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.713e-05/0.3372, allocations: 16.86 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.3372, allocations: 0 / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.3374, allocations: 99.44 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.3374, allocations: 0 / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003075/0.3377, allocations: 141.5 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.3378, allocations: 55.41 kB / 1.287 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.3379, allocations: 139.8 kB / 1.287 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.338, allocations: 33.7 kB / 1.287 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.542e-05/0.3381, allocations: 100.1 kB / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.3381, allocations: 23.97 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.3382, allocations: 65.67 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3383, allocations: 326.8 kB / 1.288 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.3386, allocations: 181.4 kB / 1.288 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.3389, allocations: 232.2 kB / 1.288 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.3392, allocations: 240.1 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3392, allocations: 7.938 kB / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006727/0.3398, allocations: 471.5 kB / 1.289 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.173e-05/0.3399, allocations: 97.09 kB / 1.289 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.3399, allocations: 0 / 1.289 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.34, allocations: 4 kB / 1.289 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.552e-05/0.34, allocations: 7.984 kB / 1.289 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.34, allocations: 3.938 kB / 1.289 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.3405, allocations: 87.98 kB / 1.289 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.3405, allocations: 15.98 kB / 1.289 GB, free: 5.539 MB / 0.9825 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.0001277/0.3406, allocations: 134.6 kB / 1.289 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/0.3406, allocations: 7.953 kB / 1.289 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.461e-05/0.3407, allocations: 16.36 kB / 1.289 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3407, allocations: 4 kB / 1.289 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3407, allocations: 0 / 1.289 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3407, allocations: 4 kB / 1.289 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.3408, allocations: 156.7 kB / 1.289 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3408, allocations: 0 / 1.289 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.143e-05/0.3409, allocations: 3.938 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3409, allocations: 3.984 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.3409, allocations: 7.984 kB / 1.289 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3409, allocations: 0 / 1.289 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3409, allocations: 0 / 1.289 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.3411, allocations: 144.9 kB / 1.289 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.269e-05/0.3411, allocations: 11.89 kB / 1.289 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.17e-05/0.3411, allocations: 7.984 kB / 1.289 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.475e-05/0.3411, allocations: 4 kB / 1.289 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.3412, allocations: 7.984 kB / 1.289 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.3412, allocations: 7.938 kB / 1.289 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.062e-05/0.3412, allocations: 101.9 kB / 1.29 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3412, allocations: 0 / 1.29 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002573/0.3415, allocations: 40 kB / 1.29 GB, free: 4.82 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: 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.0005695/0.3421, allocations: 0.6904 MB / 1.29 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005175/0.3426, allocations: 411.1 kB / 1.291 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3426, allocations: 0 / 1.291 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.468e-05/0.3427, allocations: 31.98 kB / 1.291 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.3429, allocations: 29.91 kB / 1.291 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.3458, allocations: 2.448 MB / 1.293 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.713e-05/0.3459, allocations: 75.89 kB / 1.293 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.621e-05/0.3459, allocations: 4.438 kB / 1.293 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.139e-05/0.346, allocations: 31.42 kB / 1.293 GB, free: 0.7891 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.346, allocations: 3.938 kB / 1.293 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.3791, allocations: 4.691 MB / 1.298 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.72, allocations: 5.875 kB / 1.298 GB, free: 12.29 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.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_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.747112876735628]