Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.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.001181/0.001181, allocations: 105.2 kB / 19.74 MB, free: 2.012 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.001344/0.001344, allocations: 212.2 kB / 23.04 MB, free: 4.883 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.298/1.298, allocations: 230.6 MB / 256.8 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 179] 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 0.8745/0.8745, allocations: 150 MB / 463.2 MB, free: 10.2 MB / 366.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.Reals.Validation.Switch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_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.001892/0.001892, allocations: 66.48 kB / 0.6413 GB, free: 9.789 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1496, allocations: 89.19 MB / 0.7284 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001784/0.1514, allocations: 0.7418 MB / 0.7291 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1528, allocations: 1.174 MB / 0.7303 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.931e-05/0.1528, allocations: 0 / 0.7303 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.737e-05/0.1529, allocations: 3.938 kB / 0.7303 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.192e-05/0.1529, allocations: 11.88 kB / 0.7303 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004401/0.1534, allocations: 139.4 kB / 0.7304 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.1536, allocations: 131.7 kB / 0.7306 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.212e-05/0.1536, allocations: 8 kB / 0.7306 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.782e-05/0.1537, allocations: 55.84 kB / 0.7306 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.954e-05/0.1538, allocations: 51.8 kB / 0.7307 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.1538, allocations: 12 kB / 0.7307 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-05/0.1539, allocations: 19.98 kB / 0.7307 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.473e-05/0.1539, allocations: 19.92 kB / 0.7307 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.279e-05/0.154, allocations: 39.84 kB / 0.7308 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.1542, allocations: 123.9 kB / 0.7309 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1542, allocations: 0 / 0.7309 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.1542, allocations: 0 / 0.7309 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.1542, allocations: 0 / 0.7309 GB, free: 14.16 MB / 0.5606 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.0006417/0.1548, allocations: 359.7 kB / 0.7312 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.1548, allocations: 8.031 kB / 0.7312 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.951e-05/0.1549, allocations: 38.69 kB / 0.7313 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.1549, allocations: 4.938 kB / 0.7313 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.155, allocations: 114.5 kB / 0.7314 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.155, allocations: 8.375 kB / 0.7314 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.155, allocations: 8.359 kB / 0.7314 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.1553, allocations: 82.19 kB / 0.7315 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1553, allocations: 7.922 kB / 0.7315 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.1553, allocations: 4 kB / 0.7315 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1553, allocations: 0 / 0.7315 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.1556, allocations: 71.92 kB / 0.7315 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003957/0.156, allocations: 287.7 kB / 0.7318 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.1562, allocations: 54.53 kB / 0.7319 GB, free: 13 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.1563, allocations: 40.92 kB / 0.7319 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1563, allocations: 4 kB / 0.7319 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.1566, allocations: 95.28 kB / 0.732 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.1566, allocations: 0 / 0.732 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0005695/0.1572, allocations: 165.5 kB / 0.7322 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1572, allocations: 55.39 kB / 0.7322 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.332e-05/0.1573, allocations: 118.1 kB / 0.7323 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.1573, allocations: 33.7 kB / 0.7324 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.017e-05/0.1574, allocations: 96.08 kB / 0.7325 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.1574, allocations: 11.91 kB / 0.7325 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.577e-05/0.1575, allocations: 33.7 kB / 0.7325 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1576, allocations: 322.8 kB / 0.7328 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.1578, allocations: 93.66 kB / 0.7329 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.1581, allocations: 116.1 kB / 0.733 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.1584, allocations: 140.2 kB / 0.7331 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1584, allocations: 4.094 kB / 0.7331 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005235/0.159, allocations: 248.8 kB / 0.7334 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.159, allocations: 41.69 kB / 0.7334 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.159, allocations: 0 / 0.7334 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.159, allocations: 4 kB / 0.7334 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.1591, allocations: 19.98 kB / 0.7334 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1591, allocations: 4 kB / 0.7334 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.1594, allocations: 39.89 kB / 0.7335 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.1594, allocations: 11.98 kB / 0.7335 GB, free: 11.21 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 9.234e-05/0.1595, allocations: 117.8 kB / 0.7336 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.1595, allocations: 7.953 kB / 0.7336 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.764e-05/0.1595, allocations: 8.375 kB / 0.7336 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1595, allocations: 0 / 0.7336 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1595, allocations: 4 kB / 0.7336 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1595, allocations: 3.984 kB / 0.7336 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.1596, allocations: 145 kB / 0.7338 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1596, allocations: 0 / 0.7338 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.1597, allocations: 23.97 kB / 0.7338 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1597, allocations: 0 / 0.7338 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.1598, allocations: 3.938 kB / 0.7338 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1598, allocations: 4 kB / 0.7338 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1598, allocations: 0 / 0.7338 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003748/0.1601, allocations: 156.9 kB / 0.734 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.1601, allocations: 7.953 kB / 0.734 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.1602, allocations: 0 / 0.734 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.1602, allocations: 15.97 kB / 0.734 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.1603, allocations: 4 kB / 0.734 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.1603, allocations: 4 kB / 0.734 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.859e-05/0.1603, allocations: 93.39 kB / 0.7341 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.1603, allocations: 0 / 0.7341 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002073/0.1605, allocations: 31.98 kB / 0.7341 GB, free: 10.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000697/0.1612, allocations: 0.6865 MB / 0.7348 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004975/0.1617, allocations: 204.9 kB / 0.735 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1617, allocations: 0 / 0.735 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.1619, allocations: 47.95 kB / 0.735 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.1621, allocations: 19.92 kB / 0.735 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.1646, allocations: 1.764 MB / 0.7368 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.58e-05/0.1646, allocations: 71.33 kB / 0.7368 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.48e-05/0.1647, allocations: 8 kB / 0.7368 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.688e-05/0.1647, allocations: 27.42 kB / 0.7369 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of SimCode: time 4.71e-07/0.1647, allocations: 0 / 0.7369 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.1929, allocations: 3.348 MB / 0.7401 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.866/10.06, allocations: 1.625 kB / 0.7401 GB, free: 4.312 MB / 0.5606 GB " [Timeout remaining time 650] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.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_Reals_Validation_Switch.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.392240799032152] Failed to read output from testmodel.py, exit status != 0: 10.157927667954937 10.172075093 10.015193683 Calling exit ...