Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001406/0.001406, allocations: 103 kB / 16.45 MB, free: 6.5 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.001494/0.001494, 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.507/1.507, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.786/2.786, allocations: 476.7 MB / 0.7672 GB, free: 5.223 MB / 0.6231 GB " [Timeout remaining time 177] 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.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_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.002124/0.002124, allocations: 75.88 kB / 1.112 GB, free: 1.504 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8652/0.8673, allocations: 169.9 MB / 1.278 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002271/0.8696, allocations: 0.8323 MB / 1.279 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001913/0.8715, allocations: 1.324 MB / 1.28 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.509e-05/0.8715, allocations: 8 kB / 1.28 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.958e-05/0.8716, allocations: 11.86 kB / 1.28 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.962e-05/0.8717, allocations: 27.73 kB / 1.28 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008891/0.8726, allocations: 319.4 kB / 1.281 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004068/0.873, allocations: 295.5 kB / 1.281 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.8731, allocations: 29.42 kB / 1.281 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.8733, allocations: 111.8 kB / 1.281 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.8735, allocations: 111.7 kB / 1.281 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.734e-05/0.8735, allocations: 31.94 kB / 1.281 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.602e-05/0.8736, allocations: 39.98 kB / 1.281 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.501e-05/0.8736, allocations: 27.84 kB / 1.281 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.8738, allocations: 107.7 kB / 1.281 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.8741, allocations: 260.9 kB / 1.282 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.8741, allocations: 0 / 1.282 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.462e-06/0.8741, allocations: 4 kB / 1.282 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.8741, allocations: 4 kB / 1.282 GB, free: 9.902 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007179/0.8748, allocations: 0.5234 MB / 1.282 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.8749, allocations: 8.031 kB / 1.282 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.785e-05/0.8749, allocations: 42.73 kB / 1.282 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/0.875, allocations: 20.84 kB / 1.282 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.8751, allocations: 188.7 kB / 1.282 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.8752, allocations: 19.92 kB / 1.282 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.8752, allocations: 16 kB / 1.283 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.8754, allocations: 96.02 kB / 1.283 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.8754, allocations: 0 / 1.283 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.8754, allocations: 0 / 1.283 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.8754, allocations: 11.92 kB / 1.283 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.8755, allocations: 47.97 kB / 1.283 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007372/0.8763, allocations: 492.3 kB / 1.283 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.8765, allocations: 70.48 kB / 1.283 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.74e-05/0.8766, allocations: 28.97 kB / 1.283 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.8766, allocations: 0 / 1.283 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.8768, allocations: 119.4 kB / 1.283 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.8768, allocations: 0 / 1.283 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003916/0.8772, allocations: 173.5 kB / 1.283 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.8772, allocations: 51.41 kB / 1.284 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.8774, allocations: 168.2 kB / 1.284 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.8774, allocations: 33.7 kB / 1.284 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.8775, allocations: 112 kB / 1.284 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.8776, allocations: 27.8 kB / 1.284 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.8777, allocations: 77.66 kB / 1.284 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.8779, allocations: 322.8 kB / 1.284 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.8781, allocations: 91.95 kB / 1.284 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.8783, allocations: 152.6 kB / 1.284 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.8786, allocations: 258.9 kB / 1.285 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.8786, allocations: 4 kB / 1.285 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006973/0.8793, allocations: 412.7 kB / 1.285 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.091e-05/0.8794, allocations: 93.09 kB / 1.285 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.8794, allocations: 4 kB / 1.285 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.8795, allocations: 4 kB / 1.285 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.032e-05/0.8795, allocations: 16.11 kB / 1.285 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.8795, allocations: 4 kB / 1.285 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.88, allocations: 87.73 kB / 1.285 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.88, allocations: 19.98 kB / 1.285 GB, free: 5.832 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: 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.0001498/0.8802, allocations: 142.3 kB / 1.285 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.8802, allocations: 23.83 kB / 1.286 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.982e-05/0.8803, allocations: 12.84 kB / 1.286 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.8803, allocations: 0 / 1.286 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.8803, allocations: 0 / 1.286 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.8803, allocations: 0 / 1.286 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002273/0.8805, allocations: 221.6 kB / 1.286 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.8805, allocations: 3.938 kB / 1.286 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/0.8805, allocations: 8 kB / 1.286 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.8806, allocations: 0 / 1.286 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.8806, allocations: 8 kB / 1.286 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.8806, allocations: 0 / 1.286 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8806, allocations: 3.984 kB / 1.286 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.8808, allocations: 162.5 kB / 1.286 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.39e-05/0.8809, allocations: 100.9 kB / 1.286 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.8809, allocations: 4 kB / 1.286 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.468e-05/0.881, allocations: 4 kB / 1.286 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.881, allocations: 11.98 kB / 1.286 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.881, allocations: 8 kB / 1.286 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.961e-05/0.8811, allocations: 117 kB / 1.286 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.8811, allocations: 0 / 1.286 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002753/0.8814, allocations: 48 kB / 1.286 GB, free: 4.871 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: 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.0006556/0.882, allocations: 0.7099 MB / 1.287 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005341/0.8826, allocations: 339.6 kB / 1.287 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.8826, allocations: 11.94 kB / 1.287 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.485e-05/0.8827, allocations: 43.92 kB / 1.287 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.8829, allocations: 23.97 kB / 1.287 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.8859, allocations: 2.256 MB / 1.289 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.8863, allocations: 0.7084 MB / 1.29 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.681e-05/0.8863, allocations: 16.59 kB / 1.29 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.622e-05/0.8864, allocations: 39.42 kB / 1.29 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.8864, allocations: 4 kB / 1.29 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03753/0.9239, allocations: 4.24 MB / 1.294 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.281/9.205, allocations: 11.88 kB / 1.294 GB, free: 12.38 MB / 0.9981 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.392468275967985]