Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001711/0.001711, allocations: 110.5 kB / 17.12 MB, free: 6.008 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.00211/0.00211, allocations: 211.2 kB / 20.1 MB, free: 3.055 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.571/1.571, 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 0.9964/0.9964, allocations: 150 MB / 459.5 MB, free: 5.266 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.Discrete.Validation.Sampler,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler",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.002032/0.002032, allocations: 71.2 kB / 0.6361 GB, free: 30.46 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1672, allocations: 89.13 MB / 0.7231 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001899/0.1691, allocations: 0.6598 MB / 0.7238 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.1705, allocations: 1.099 MB / 0.7249 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.692e-05/0.1706, allocations: 0 / 0.7249 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.023e-05/0.1706, allocations: 3.938 kB / 0.7249 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.324e-05/0.1707, allocations: 7.922 kB / 0.7249 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002536/0.1709, allocations: 43.84 kB / 0.7249 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.171, allocations: 51.89 kB / 0.725 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.028e-05/0.1711, allocations: 4 kB / 0.725 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.337e-05/0.1712, allocations: 19.92 kB / 0.725 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.738e-05/0.1712, allocations: 31.84 kB / 0.725 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.1712, allocations: 7.938 kB / 0.725 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.629e-05/0.1713, allocations: 23.97 kB / 0.725 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.078e-05/0.1713, allocations: 11.94 kB / 0.7251 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.367e-05/0.1714, allocations: 15.92 kB / 0.7251 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.1715, allocations: 60.06 kB / 0.7251 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1715, allocations: 0 / 0.7251 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1715, allocations: 0 / 0.7251 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.1715, allocations: 4 kB / 0.7251 GB, free: 2.043 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006195/0.1721, allocations: 371.2 kB / 0.7255 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1722, allocations: 12.03 kB / 0.7255 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.1722, allocations: 30.75 kB / 0.7255 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.338e-05/0.1723, allocations: 8.891 kB / 0.7255 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.1724, allocations: 168.3 kB / 0.7257 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1724, allocations: 4.375 kB / 0.7257 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.1725, allocations: 8.359 kB / 0.7257 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.1727, allocations: 62.23 kB / 0.7258 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.1727, allocations: 3.938 kB / 0.7258 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.1727, allocations: 0 / 0.7258 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1727, allocations: 0 / 0.7258 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1729, allocations: 43.95 kB / 0.7258 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004663/0.1734, allocations: 288.7 kB / 0.7261 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.1736, allocations: 58.48 kB / 0.7261 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.1737, allocations: 24.97 kB / 0.7262 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.1737, allocations: 0 / 0.7262 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.1739, allocations: 75.38 kB / 0.7262 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.1739, allocations: 0 / 0.7262 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0004486/0.1744, allocations: 125.7 kB / 0.7264 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1744, allocations: 51.41 kB / 0.7264 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.442e-05/0.1745, allocations: 109.9 kB / 0.7265 GB, free: 432 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.1745, allocations: 29.7 kB / 0.7265 GB, free: 396 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.983e-05/0.1746, allocations: 84.14 kB / 0.7266 GB, free: 308 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.1746, allocations: 19.89 kB / 0.7266 GB, free: 288 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.1747, allocations: 21.72 kB / 0.7267 GB, free: 260 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1748, allocations: 318.8 kB / 0.727 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1749, allocations: 23.97 kB / 0.727 GB, free: 15.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.175, allocations: 51.41 kB / 0.727 GB, free: 15.85 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.1753, allocations: 87.31 kB / 0.7271 GB, free: 15.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1753, allocations: 0 / 0.7271 GB, free: 15.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000284/0.1755, allocations: 105.6 kB / 0.7272 GB, free: 15.64 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.1756, allocations: 7.938 kB / 0.7272 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1756, allocations: 0 / 0.7272 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1756, allocations: 4 kB / 0.7272 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1757, allocations: 15.92 kB / 0.7273 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1757, allocations: 3.984 kB / 0.7273 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.054e-05/0.1758, allocations: 19.88 kB / 0.7273 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1758, allocations: 0 / 0.7273 GB, free: 15.59 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0001031/0.1759, allocations: 121.8 kB / 0.7274 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.1759, allocations: 7.984 kB / 0.7274 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000311/0.1762, allocations: 106 kB / 0.7275 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1762, allocations: 0 / 0.7275 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1762, allocations: 0 / 0.7275 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1762, allocations: 0 / 0.7275 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005286/0.1767, allocations: 362.5 kB / 0.7278 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1767, allocations: 0 / 0.7278 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.913e-05/0.1768, allocations: 8 kB / 0.7279 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.1768, allocations: 3.984 kB / 0.7279 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-06/0.1768, allocations: 0 / 0.7279 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1768, allocations: 4 kB / 0.7279 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1768, allocations: 384 / 0.7279 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.1771, allocations: 195.5 kB / 0.728 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.1772, allocations: 85.05 kB / 0.7281 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1772, allocations: 4 kB / 0.7281 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1773, allocations: 7.984 kB / 0.7281 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.1774, allocations: 15.88 kB / 0.7282 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.1774, allocations: 0 / 0.7282 GB, free: 14.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.909e-05/0.1774, allocations: 83.27 kB / 0.7282 GB, free: 14.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/0.1774, allocations: 0 / 0.7282 GB, free: 14.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002583/0.1777, allocations: 20 kB / 0.7283 GB, free: 14.47 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007025/0.1784, allocations: 0.7164 MB / 0.729 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002723/0.1787, allocations: 67.89 kB / 0.729 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1787, allocations: 0 / 0.729 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.1788, allocations: 31.91 kB / 0.729 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.179, allocations: 11.88 kB / 0.7291 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.1808, allocations: 1.384 MB / 0.7304 GB, free: 12.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.1812, allocations: 0.6807 MB / 0.7311 GB, free: 11.44 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.332e-05/0.1812, allocations: 11.98 kB / 0.7311 GB, free: 11.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.1812, allocations: 11.44 kB / 0.7311 GB, free: 11.42 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.1812, allocations: 0 / 0.7311 GB, free: 11.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02567/0.2069, allocations: 1.764 MB / 0.7328 GB, free: 9.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.091, allocations: 19.17 kB / 0.7328 GB, free: 9.734 MB / 0.545 GB " [Timeout remaining time 652] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.261931316927075] Failed to read output from testmodel.py, exit status != 0: 8.161923617124557 8.184841219 8.009223072 Calling exit ...