Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 104.6 kB / 16.4 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 193.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8153/0.8153, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 65.83 kB / 0.5736 GB, free: 27 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1636, allocations: 78.86 MB / 0.6506 GB, free: 3.547 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.05943/0.2231, allocations: 54.54 MB / 0.7039 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01695/0.2401, allocations: 10.33 MB / 0.714 GB, free: 2.457 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002614/0.2427, allocations: 71.5 kB / 0.714 GB, free: 2.387 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003188/0.246, allocations: 0.893 MB / 0.7149 GB, free: 1.488 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00694/0.253, allocations: 1.927 MB / 0.7168 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006174/0.2592, allocations: 2.078 MB / 0.7188 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006382/0.2656, allocations: 3.753 MB / 0.7225 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002526/0.2682, allocations: 1.165 MB / 0.7236 GB, free: 8.523 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004875/0.2731, allocations: 1.871 MB / 0.7254 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002646/0.2758, allocations: 1.19 MB / 0.7266 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004736/0.2763, allocations: 108 kB / 0.7267 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.28, allocations: 1.279 MB / 0.7279 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006966/0.2807, allocations: 382.5 kB / 0.7283 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.2825, allocations: 0.8508 MB / 0.7291 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005715/0.2883, allocations: 2.463 MB / 0.7315 GB, free: 368 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2883, allocations: 0 / 0.7315 GB, free: 368 kB / 0.5606 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2883, allocations: 0 / 0.7315 GB, free: 368 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.632e-05/0.2884, allocations: 0 / 0.7315 GB, free: 368 kB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.004681/0.2931, allocations: 2.189 MB / 0.7337 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.2932, allocations: 12.03 kB / 0.7337 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002353/0.2934, allocations: 164.8 kB / 0.7339 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004016/0.2974, allocations: 0.666 MB / 0.7345 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/0.3004, allocations: 1.204 MB / 0.7357 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.3005, allocations: 82.14 kB / 0.7358 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002489/0.3007, allocations: 108 kB / 0.7359 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003663/0.3044, allocations: 1.492 MB / 0.7373 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.3045, allocations: 3.938 kB / 0.7373 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.3046, allocations: 48 kB / 0.7374 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/0.3046, allocations: 28 kB / 0.7374 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003924/0.3086, allocations: 1.225 MB / 0.7386 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3647/0.6733, allocations: 8.38 MB / 0.7468 GB, free: 91.41 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/0.677, allocations: 1.086 MB / 0.7478 GB, free: 91.38 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.6787, allocations: 0.558 MB / 0.7484 GB, free: 91.37 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001583/0.6803, allocations: 2.893 MB / 0.7512 GB, free: 88.09 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001933/0.6822, allocations: 0.6732 MB / 0.7519 GB, free: 88.02 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 3.566e-06/0.6822, allocations: 0 / 0.7519 GB, free: 88.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.005371/0.6876, allocations: 1.805 MB / 0.7536 GB, free: 87.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.6877, allocations: 61.53 kB / 0.7537 GB, free: 87.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.6898, allocations: 1.486 MB / 0.7551 GB, free: 87.33 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.6899, allocations: 43.45 kB / 0.7552 GB, free: 87.29 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005266/0.6905, allocations: 0.7992 MB / 0.756 GB, free: 86.76 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.6907, allocations: 306.2 kB / 0.7563 GB, free: 86.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003474/0.6911, allocations: 228.8 kB / 0.7565 GB, free: 86.46 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.564e-05/0.6912, allocations: 353 kB / 0.7568 GB, free: 86.14 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/0.6929, allocations: 0.5208 MB / 0.7573 GB, free: 86.02 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002005/0.6949, allocations: 0.901 MB / 0.7582 GB, free: 85.44 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003276/0.6982, allocations: 1.41 MB / 0.7596 GB, free: 84.73 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.6982, allocations: 3.812 kB / 0.7596 GB, free: 84.73 MB / 0.5762 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004378/0.7026, allocations: 1.614 MB / 0.7611 GB, free: 84.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.7027, allocations: 10.39 kB / 0.7612 GB, free: 84.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.486e-05/0.7027, allocations: 15.31 kB / 0.7612 GB, free: 84.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.532e-05/0.7028, allocations: 17.92 kB / 0.7612 GB, free: 84.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.7042, allocations: 349.3 kB / 0.7615 GB, free: 84.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-05/0.7043, allocations: 28.7 kB / 0.7616 GB, free: 84.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.7058, allocations: 225.4 kB / 0.7618 GB, free: 84.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.706, allocations: 68.98 kB / 0.7618 GB, free: 84.09 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 140 * 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.000615/0.7066, allocations: 343.4 kB / 0.7622 GB, free: 83.88 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.7069, allocations: 176.7 kB / 0.7623 GB, free: 83.78 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005309/0.7122, allocations: 2.09 MB / 0.7644 GB, free: 83.11 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.87e-05/0.7123, allocations: 21.23 kB / 0.7644 GB, free: 83.11 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.7123, allocations: 1.188 kB / 0.7644 GB, free: 83.11 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.7123, allocations: 8.906 kB / 0.7644 GB, free: 83.11 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006274/0.7186, allocations: 3.294 MB / 0.7676 GB, free: 81.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.7186, allocations: 1.594 kB / 0.7676 GB, free: 81.79 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.7197, allocations: 227.6 kB / 0.7678 GB, free: 81.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.7197, allocations: 5.688 kB / 0.7678 GB, free: 81.77 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-05/0.7198, allocations: 39.41 kB / 0.7679 GB, free: 81.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.327e-06/0.7198, allocations: 4.125 kB / 0.7679 GB, free: 81.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.7198, allocations: 6.156 kB / 0.7679 GB, free: 81.76 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005773/0.7256, allocations: 2.709 MB / 0.7705 GB, free: 80.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006889/0.7263, allocations: 390.8 kB / 0.7709 GB, free: 80.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/0.7265, allocations: 23.81 kB / 0.7709 GB, free: 80.37 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7276, allocations: 121.5 kB / 0.771 GB, free: 80.31 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.7277, allocations: 76.67 kB / 0.7711 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.623e-05/0.7278, allocations: 48.16 kB / 0.7712 GB, free: 80.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001206/0.729, allocations: 1.01 MB / 0.7721 GB, free: 79.74 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.91e-07/0.729, allocations: 0 / 0.7721 GB, free: 79.74 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001533/0.7306, allocations: 0.544 MB / 0.7727 GB, free: 79.65 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * When equations: 6 * 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.007647/0.7382, allocations: 3.997 MB / 0.7766 GB, free: 77.49 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003592/0.7419, allocations: 1.459 MB / 0.778 GB, free: 76.84 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.7419, allocations: 0 / 0.778 GB, free: 76.84 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.7436, allocations: 0.7968 MB / 0.7788 GB, free: 76.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/0.7466, allocations: 0.7377 MB / 0.7795 GB, free: 76.09 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/0.7656, allocations: 12.57 MB / 0.7918 GB, free: 64.14 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.7662, allocations: 1.297 MB / 0.7931 GB, free: 62.81 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001296/0.7675, allocations: 372.9 kB / 0.7934 GB, free: 62.44 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007551/0.7682, allocations: 0.71 MB / 0.7941 GB, free: 61.73 MB / 0.5762 GB Notification: Performance of SimCode: time 9.92e-07/0.7682, allocations: 0 / 0.7941 GB, free: 61.73 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07372/0.842, allocations: 47.46 MB / 0.8404 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.61, allocations: 9.625 kB / 0.8405 GB, free: 14.8 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.48 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)