Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001909/0.001909, allocations: 113.3 kB / 17.12 MB, free: 6.047 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.002293/0.002293, allocations: 208.3 kB / 20.09 MB, free: 3.098 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.535/1.535, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 1.014/1.014, allocations: 150 MB / 459.5 MB, free: 5.25 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002029/0.002029, allocations: 70.42 kB / 0.6361 GB, free: 30.49 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1729, allocations: 89.13 MB / 0.7232 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002571/0.1754, allocations: 0.8217 MB / 0.724 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002003/0.1774, allocations: 1.328 MB / 0.7253 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1775, allocations: 4 kB / 0.7253 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.735e-05/0.1776, allocations: 11.88 kB / 0.7253 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.1777, allocations: 19.8 kB / 0.7253 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000985/0.1787, allocations: 319 kB / 0.7256 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004534/0.1791, allocations: 291.5 kB / 0.7259 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1793, allocations: 37.44 kB / 0.7259 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.1795, allocations: 115.8 kB / 0.726 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.1797, allocations: 111.6 kB / 0.7261 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.1798, allocations: 24 kB / 0.7262 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1799, allocations: 36 kB / 0.7262 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.777e-05/0.1799, allocations: 31.84 kB / 0.7262 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.1801, allocations: 103.7 kB / 0.7263 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.1804, allocations: 263.4 kB / 0.7266 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1804, allocations: 0 / 0.7266 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.923e-06/0.1804, allocations: 0 / 0.7266 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.1804, allocations: 0 / 0.7266 GB, free: 0.5156 MB / 0.5294 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.000774/0.1812, allocations: 0.5273 MB / 0.7271 GB, free: 15.92 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1813, allocations: 12.03 kB / 0.7271 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.111e-05/0.1813, allocations: 46.67 kB / 0.7271 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.804e-05/0.1814, allocations: 20.84 kB / 0.7272 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.1815, allocations: 176.8 kB / 0.7273 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.1816, allocations: 19.94 kB / 0.7274 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.767e-05/0.1816, allocations: 20 kB / 0.7274 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.1818, allocations: 85.61 kB / 0.7275 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1818, allocations: 0 / 0.7275 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1818, allocations: 11.98 kB / 0.7275 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.1819, allocations: 7.938 kB / 0.7275 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.182, allocations: 39.98 kB / 0.7275 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007518/0.1827, allocations: 0.4885 MB / 0.728 GB, free: 14.9 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.183, allocations: 66.62 kB / 0.7281 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.95e-05/0.183, allocations: 28.91 kB / 0.7281 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.183, allocations: 0 / 0.7281 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.1833, allocations: 125.7 kB / 0.7282 GB, free: 14.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1833, allocations: 0 / 0.7282 GB, free: 14.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0004/0.1837, allocations: 173.5 kB / 0.7284 GB, free: 14.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.1838, allocations: 59.41 kB / 0.7284 GB, free: 14.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.1839, allocations: 167 kB / 0.7286 GB, free: 14.24 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.459e-05/0.184, allocations: 37.7 kB / 0.7286 GB, free: 14.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.1841, allocations: 112.1 kB / 0.7287 GB, free: 14.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.1841, allocations: 23.84 kB / 0.7287 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.1843, allocations: 73.67 kB / 0.7288 GB, free: 13.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1845, allocations: 322.8 kB / 0.7291 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.1847, allocations: 99.94 kB / 0.7292 GB, free: 13.56 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002729/0.185, allocations: 152.9 kB / 0.7294 GB, free: 13.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000358/0.1853, allocations: 248.6 kB / 0.7296 GB, free: 13.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1853, allocations: 0 / 0.7296 GB, free: 13.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007375/0.1861, allocations: 418.2 kB / 0.73 GB, free: 12.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.1862, allocations: 105 kB / 0.7301 GB, free: 12.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1862, allocations: 4 kB / 0.7301 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1862, allocations: 0 / 0.7301 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.18e-05/0.1862, allocations: 12 kB / 0.7301 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1863, allocations: 4 kB / 0.7301 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.1867, allocations: 83.98 kB / 0.7302 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.191e-05/0.1868, allocations: 23.98 kB / 0.7302 GB, free: 12.43 MB / 0.545 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.0001529/0.187, allocations: 133.8 kB / 0.7304 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.187, allocations: 23.84 kB / 0.7304 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.187, allocations: 12.84 kB / 0.7304 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.187, allocations: 4 kB / 0.7304 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.187, allocations: 0 / 0.7304 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.187, allocations: 0 / 0.7304 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.1873, allocations: 221.5 kB / 0.7306 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1873, allocations: 3.938 kB / 0.7306 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.964e-05/0.1873, allocations: 11.94 kB / 0.7306 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1873, allocations: 0 / 0.7306 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1874, allocations: 3.984 kB / 0.7306 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1874, allocations: 0 / 0.7306 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.1874, allocations: 11.98 kB / 0.7306 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.1876, allocations: 163.5 kB / 0.7308 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/0.1877, allocations: 92.95 kB / 0.7309 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.1877, allocations: 0 / 0.7309 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.295e-05/0.1878, allocations: 4 kB / 0.7309 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.1878, allocations: 7.984 kB / 0.7309 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1878, allocations: 7.984 kB / 0.7309 GB, free: 11.65 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001055/0.1879, allocations: 119.3 kB / 0.731 GB, free: 11.53 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1879, allocations: 0 / 0.731 GB, free: 11.53 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003028/0.1882, allocations: 51.98 kB / 0.7311 GB, free: 11.48 MB / 0.545 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.0006878/0.1889, allocations: 0.7113 MB / 0.7318 GB, free: 10.74 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005331/0.1894, allocations: 350 kB / 0.7321 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1894, allocations: 0 / 0.7321 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.378e-05/0.1895, allocations: 43.97 kB / 0.7321 GB, free: 10.32 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.1898, allocations: 32.88 kB / 0.7322 GB, free: 10.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.193, allocations: 2.254 MB / 0.7344 GB, free: 7.902 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.1933, allocations: 0.7045 MB / 0.7351 GB, free: 7.168 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.445e-05/0.1934, allocations: 16.58 kB / 0.7351 GB, free: 7.152 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.357e-05/0.1934, allocations: 39.42 kB / 0.7351 GB, free: 7.113 MB / 0.545 GB Notification: Performance of SimCode: time 3.6e-07/0.1934, allocations: 0 / 0.7351 GB, free: 7.113 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02767/0.2211, allocations: 4.237 MB / 0.7392 GB, free: 3.023 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/8.48, allocations: 2.031 kB / 0.7392 GB, free: 3.023 MB / 0.545 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 IBPSA_latest_IBPSA_Controls_OBC_CDL_Integers_Validation_Switch.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.487345763016492] Failed to read output from testmodel.py, exit status != 0: 8.548798527102917 8.563901251 8.380503602 Calling exit ...