Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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.001482/0.001482, allocations: 118.8 kB / 17.84 MB, free: 5.234 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: 202.3 kB / 20.79 MB, free: 2.297 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.431/1.431, allocations: 230.6 MB / 254.2 MB, free: 15.1 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.983/0.983, allocations: 150 MB / 460.2 MB, free: 5.617 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.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="cs",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.001923/0.001923, allocations: 67.88 kB / 0.6369 GB, free: 30.34 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1753, allocations: 89.14 MB / 0.7239 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003632/0.179, allocations: 2.089 MB / 0.7259 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1802, allocations: 0.6234 MB / 0.7266 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.1803, allocations: 4 kB / 0.7266 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1804, allocations: 23.67 kB / 0.7266 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.1806, allocations: 47.53 kB / 0.7266 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.1808, allocations: 99.86 kB / 0.7267 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.1812, allocations: 307.2 kB / 0.727 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.1815, allocations: 104.1 kB / 0.7271 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.1816, allocations: 139.5 kB / 0.7272 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.1818, allocations: 139.4 kB / 0.7274 GB, free: 404 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.1819, allocations: 32 kB / 0.7274 GB, free: 372 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 4.275e-05/0.1819, allocations: 32 kB / 0.7274 GB, free: 340 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.182, allocations: 67.75 kB / 0.7275 GB, free: 272 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1821, allocations: 135.3 kB / 0.7276 GB, free: 136 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.1825, allocations: 318.7 kB / 0.7279 GB, free: 15.82 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1825, allocations: 0 / 0.7279 GB, free: 15.82 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1825, allocations: 0 / 0.7279 GB, free: 15.82 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.1825, allocations: 0 / 0.7279 GB, free: 15.82 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001385/0.1839, allocations: 0.6954 MB / 0.7286 GB, free: 15.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.184, allocations: 8.031 kB / 0.7286 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.868e-05/0.184, allocations: 8.625 kB / 0.7286 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.579e-05/0.1841, allocations: 75.17 kB / 0.7287 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.127e-05/0.1842, allocations: 36.69 kB / 0.7287 GB, free: 14.92 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000453/0.1846, allocations: 284.1 kB / 0.729 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.1847, allocations: 16.56 kB / 0.729 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.1847, allocations: 28 kB / 0.729 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.1855, allocations: 330.1 kB / 0.7294 GB, free: 14.22 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1855, allocations: 0 / 0.7294 GB, free: 14.22 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.1855, allocations: 12 kB / 0.7294 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.1855, allocations: 4 kB / 0.7294 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007924/0.1863, allocations: 222.1 kB / 0.7296 GB, free: 13.99 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.1877, allocations: 0.7093 MB / 0.7303 GB, free: 13.23 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00073/0.1884, allocations: 226.4 kB / 0.7305 GB, free: 13 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/0.1888, allocations: 100.8 kB / 0.7306 GB, free: 12.89 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.1888, allocations: 4 kB / 0.7306 GB, free: 12.89 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005438/0.1893, allocations: 208.1 kB / 0.7308 GB, free: 12.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.1893, allocations: 0 / 0.7308 GB, free: 12.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.001809/0.1911, allocations: 0.5501 MB / 0.7313 GB, free: 12.12 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.1913, allocations: 145.1 kB / 0.7315 GB, free: 11.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.1915, allocations: 228.1 kB / 0.7317 GB, free: 11.71 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.1916, allocations: 41.7 kB / 0.7317 GB, free: 11.67 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1917, allocations: 164.7 kB / 0.7319 GB, free: 11.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.912e-05/0.1918, allocations: 79.41 kB / 0.732 GB, free: 11.42 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.1919, allocations: 77.69 kB / 0.732 GB, free: 11.34 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1921, allocations: 334.8 kB / 0.7324 GB, free: 11 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/0.1925, allocations: 132.3 kB / 0.7325 GB, free: 10.88 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.193, allocations: 204.1 kB / 0.7327 GB, free: 10.65 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007663/0.1937, allocations: 347.2 kB / 0.733 GB, free: 10.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1937, allocations: 4 kB / 0.733 GB, free: 10.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001045/0.1948, allocations: 472.8 kB / 0.7335 GB, free: 9.781 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.934e-05/0.1949, allocations: 97.12 kB / 0.7336 GB, free: 9.668 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1949, allocations: 0 / 0.7336 GB, free: 9.668 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1949, allocations: 4 kB / 0.7336 GB, free: 9.664 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.1952, allocations: 59.83 kB / 0.7336 GB, free: 9.605 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1952, allocations: 7.938 kB / 0.7336 GB, free: 9.598 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.1956, allocations: 59.88 kB / 0.7337 GB, free: 9.539 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.1956, allocations: 12 kB / 0.7337 GB, free: 9.527 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,ySetOn.y,$PRE.ySetOn.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.canOpe,minFloRatSaf.errAndSetOn.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * 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.0001804/0.1958, allocations: 160.4 kB / 0.7338 GB, free: 9.363 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.1958, allocations: 19.86 kB / 0.7339 GB, free: 9.344 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.506e-05/0.1959, allocations: 34.55 kB / 0.7339 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.1959, allocations: 0 / 0.7339 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1959, allocations: 3.938 kB / 0.7339 GB, free: 9.309 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1959, allocations: 4 kB / 0.7339 GB, free: 9.305 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.1974, allocations: 0.7551 MB / 0.7346 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1974, allocations: 0 / 0.7346 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.1975, allocations: 43.95 kB / 0.7347 GB, free: 8.441 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1975, allocations: 0 / 0.7347 GB, free: 8.441 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.1976, allocations: 7.984 kB / 0.7347 GB, free: 8.434 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.1976, allocations: 4 kB / 0.7347 GB, free: 8.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1976, allocations: 3.938 kB / 0.7347 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008736/0.1985, allocations: 424.8 kB / 0.7351 GB, free: 7.984 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.535e-05/0.1985, allocations: 97 kB / 0.7352 GB, free: 7.871 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.942e-05/0.1986, allocations: 12 kB / 0.7352 GB, free: 7.859 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.1989, allocations: 51.92 kB / 0.7353 GB, free: 7.809 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.1991, allocations: 55.92 kB / 0.7353 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.1991, allocations: 15.98 kB / 0.7353 GB, free: 7.738 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001422/0.1993, allocations: 155.5 kB / 0.7355 GB, free: 7.586 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.1993, allocations: 0 / 0.7355 GB, free: 7.586 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003273/0.1996, allocations: 60 kB / 0.7355 GB, free: 7.527 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 17 (minFloRatSaf.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.canOpe,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count,ySetOn.y) * Number of discrete states: 8 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,ySetOn.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001694/0.2013, allocations: 1.101 MB / 0.7366 GB, free: 6.391 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.2023, allocations: 454.9 kB / 0.737 GB, free: 5.91 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2023, allocations: 320 / 0.737 GB, free: 5.91 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000489/0.2028, allocations: 159.8 kB / 0.7372 GB, free: 5.754 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.2032, allocations: 39.03 kB / 0.7372 GB, free: 5.719 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/0.208, allocations: 2.936 MB / 0.7401 GB, free: 2.629 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.2084, allocations: 0.7523 MB / 0.7408 GB, free: 1.852 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001311/0.2085, allocations: 30.28 kB / 0.7409 GB, free: 1.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.2087, allocations: 91.33 kB / 0.7409 GB, free: 1.73 MB / 0.545 GB Notification: Performance of SimCode: time 8.11e-07/0.2087, allocations: 4 kB / 0.741 GB, free: 1.727 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.2354, allocations: 6.56 MB / 0.7474 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.281/8.517, allocations: 10.67 kB / 0.7474 GB, free: 11.37 MB / 0.5606 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.268764536012895] Failed to read output from testmodel.py, exit status != 0: 8.640426751982886 8.654916119 8.469634009 Calling exit ...