Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.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.001709/0.001709, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002332/0.002332, allocations: 221.7 kB / 22.25 MB, free: 5.254 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.572/1.572, allocations: 230.6 MB / 256 MB, free: 7.797 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.259/3.259, allocations: 0.49 GB / 0.7951 GB, free: 35.46 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.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_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.002097/0.002097, allocations: 65.61 kB / 1.154 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3714, allocations: 176.1 MB / 1.326 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00239/0.3737, allocations: 0.8048 MB / 1.327 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002049/0.3758, allocations: 1.303 MB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.488e-05/0.3759, allocations: 8 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.652e-05/0.3759, allocations: 15.8 kB / 1.328 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.923e-05/0.376, allocations: 19.8 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.3771, allocations: 326.3 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.3775, allocations: 287.5 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.3776, allocations: 37.59 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.3778, allocations: 115.8 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.3781, allocations: 115.6 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.707e-05/0.3782, allocations: 24 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.3783, allocations: 35.98 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.416e-05/0.3783, allocations: 27.92 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.3785, allocations: 95.73 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.3788, allocations: 275.3 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3788, allocations: 0 / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3788, allocations: 8 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.3789, allocations: 0 / 1.329 GB, free: 14.01 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007764/0.3796, allocations: 454.9 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3797, allocations: 8.031 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.3797, allocations: 42.73 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.3798, allocations: 20.84 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.3799, allocations: 130.9 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.38, allocations: 15.94 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.966e-05/0.38, allocations: 27.92 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.3802, allocations: 86.47 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.3802, allocations: 0 / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.3803, allocations: 12 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.3803, allocations: 0 / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.3804, allocations: 49.86 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007978/0.3812, allocations: 415.4 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.3814, allocations: 70.56 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.122e-05/0.3815, allocations: 28.91 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.3815, allocations: 0 / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.3817, allocations: 115.4 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.973e-06/0.3817, allocations: 4 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.000437/0.3822, allocations: 177.5 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.3822, allocations: 55.41 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.3824, allocations: 160.4 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.3825, allocations: 41.69 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3826, allocations: 104 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.3826, allocations: 31.83 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.3827, allocations: 69.67 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3829, allocations: 326.8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/0.3832, allocations: 192.9 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003121/0.3835, allocations: 234.1 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.3839, allocations: 255 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3839, allocations: 0 / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007364/0.3846, allocations: 0.4893 MB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.213e-05/0.3847, allocations: 105.2 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3847, allocations: 0 / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.3847, allocations: 4 kB / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.625e-05/0.3848, allocations: 15.92 kB / 1.333 GB, free: 9.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.3848, allocations: 4 kB / 1.333 GB, free: 9.977 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004719/0.3853, allocations: 83.8 kB / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.3853, allocations: 23.98 kB / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001495/0.3854, allocations: 142.2 kB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.3855, allocations: 19.83 kB / 1.333 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.912e-05/0.3855, allocations: 12.78 kB / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.3855, allocations: 0 / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3855, allocations: 0 / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3855, allocations: 0 / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.3858, allocations: 176.7 kB / 1.333 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3858, allocations: 3.938 kB / 1.333 GB, free: 9.465 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.766e-05/0.3858, allocations: 15.98 kB / 1.333 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.3858, allocations: 4 kB / 1.333 GB, free: 9.445 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.3858, allocations: 11.94 kB / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3858, allocations: 0 / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3858, allocations: 0 / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.3861, allocations: 164.9 kB / 1.333 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.792e-05/0.3861, allocations: 19.83 kB / 1.333 GB, free: 9.234 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.3861, allocations: 7.984 kB / 1.333 GB, free: 9.227 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.228e-05/0.3862, allocations: 4 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.3862, allocations: 11.98 kB / 1.334 GB, free: 9.211 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.3862, allocations: 4 kB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.75e-05/0.3863, allocations: 121.2 kB / 1.334 GB, free: 9.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3863, allocations: 0 / 1.334 GB, free: 9.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003215/0.3866, allocations: 51.94 kB / 1.334 GB, free: 9.039 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.000584/0.3872, allocations: 0.7131 MB / 1.334 GB, free: 8.301 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005504/0.3878, allocations: 427.2 kB / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3878, allocations: 0 / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.451e-05/0.3879, allocations: 52.27 kB / 1.335 GB, free: 7.777 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.3881, allocations: 31.92 kB / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.3912, allocations: 2.613 MB / 1.337 GB, free: 4.926 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.241e-05/0.3913, allocations: 102.7 kB / 1.338 GB, free: 4.805 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.632e-05/0.3913, allocations: 12.64 kB / 1.338 GB, free: 4.793 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.778e-05/0.3914, allocations: 39.42 kB / 1.338 GB, free: 4.754 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3914, allocations: 0 / 1.338 GB, free: 4.754 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03228/0.4236, allocations: 5.122 MB / 1.343 GB, free: 15.83 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.65, allocations: 9.562 kB / 1.343 GB, free: 15.82 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Integers.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_Integers_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable integerSwitch.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.69313491799403]