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.001636/0.001636, allocations: 108.5 kB / 16.39 MB, free: 6.355 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.001698/0.001698, allocations: 197.2 kB / 17.33 MB, free: 5.832 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.303/1.303, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7853/0.7853, allocations: 122.9 MB / 414 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.17 kB / 0.568 GB, free: 28.87 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1557, allocations: 77.94 MB / 0.6441 GB, free: 9.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03223/0.1879, allocations: 29.32 MB / 0.6727 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1983, allocations: 6.879 MB / 0.6794 GB, free: 5.203 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.1999, allocations: 47.62 kB / 0.6795 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.2017, allocations: 0.6992 MB / 0.6802 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003946/0.2057, allocations: 1.509 MB / 0.6816 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002919/0.2086, allocations: 1.159 MB / 0.6828 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003407/0.212, allocations: 2.493 MB / 0.6852 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.2135, allocations: 0.7945 MB / 0.686 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00247/0.2159, allocations: 1.043 MB / 0.687 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001632/0.2176, allocations: 0.8247 MB / 0.6878 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.00034/0.218, allocations: 68 kB / 0.6879 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.2202, allocations: 0.811 MB / 0.6887 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.2206, allocations: 275 kB / 0.6889 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.2217, allocations: 0.5553 MB / 0.6895 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003276/0.225, allocations: 1.622 MB / 0.691 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.225, allocations: 4 kB / 0.691 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.773e-06/0.225, allocations: 3.938 kB / 0.6911 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.659e-05/0.2251, allocations: 0 / 0.6911 GB, free: 9.254 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.003193/0.2283, allocations: 1.608 MB / 0.6926 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.2283, allocations: 12.62 kB / 0.6926 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001611/0.2285, allocations: 118.7 kB / 0.6927 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003629/0.2321, allocations: 0.5931 MB / 0.6933 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.2339, allocations: 0.8807 MB / 0.6942 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.994e-05/0.234, allocations: 62.12 kB / 0.6942 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.2341, allocations: 72 kB / 0.6943 GB, free: 5.793 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002496/0.2366, allocations: 1.092 MB / 0.6954 GB, free: 4.621 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.2367, allocations: 3.938 kB / 0.6954 GB, free: 4.617 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.57e-05/0.2367, allocations: 32 kB / 0.6954 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.2368, allocations: 20 kB / 0.6954 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003173/0.24, allocations: 1.004 MB / 0.6964 GB, free: 3.562 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00583/0.2458, allocations: 4.948 MB / 0.7012 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003012/0.2488, allocations: 0.9005 MB / 0.7021 GB, free: 13.43 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.2503, allocations: 498.2 kB / 0.7026 GB, free: 12.93 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001284/0.2516, allocations: 1.591 MB / 0.7042 GB, free: 10.99 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001691/0.2533, allocations: 0.5729 MB / 0.7047 GB, free: 10.41 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 3.216e-06/0.2533, allocations: 0 / 0.7047 GB, free: 10.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.004855/0.2582, allocations: 1.489 MB / 0.7062 GB, free: 8.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.2583, allocations: 55.97 kB / 0.7062 GB, free: 8.844 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/0.2596, allocations: 1.124 MB / 0.7073 GB, free: 7.707 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.884e-05/0.2597, allocations: 41.64 kB / 0.7074 GB, free: 7.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/0.2601, allocations: 0.556 MB / 0.7079 GB, free: 7.098 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.2603, allocations: 218.2 kB / 0.7081 GB, free: 6.883 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.2605, allocations: 162.6 kB / 0.7083 GB, free: 6.719 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.2606, allocations: 334 kB / 0.7086 GB, free: 6.387 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.2621, allocations: 461.6 kB / 0.709 GB, free: 5.934 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.2637, allocations: 0.7088 MB / 0.7097 GB, free: 5.105 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.2668, allocations: 1.117 MB / 0.7108 GB, free: 3.887 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.2668, allocations: 4 kB / 0.7108 GB, free: 3.883 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003593/0.2704, allocations: 1.279 MB / 0.7121 GB, free: 2.594 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.2704, allocations: 8 kB / 0.7121 GB, free: 2.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.2704, allocations: 8 kB / 0.7121 GB, free: 2.578 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.182e-05/0.2705, allocations: 12 kB / 0.7121 GB, free: 2.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.2717, allocations: 276 kB / 0.7123 GB, free: 2.297 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.2717, allocations: 15.94 kB / 0.7124 GB, free: 2.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.2729, allocations: 179.3 kB / 0.7125 GB, free: 2.105 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-05/0.273, allocations: 47.97 kB / 0.7126 GB, free: 2.059 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (100): * Single equations (assignments): 100 * 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.0004852/0.2735, allocations: 287.8 kB / 0.7129 GB, free: 1.77 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.2737, allocations: 131.1 kB / 0.713 GB, free: 1.641 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003728/0.2775, allocations: 1.359 MB / 0.7143 GB, free: 280 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.516e-05/0.2775, allocations: 19.97 kB / 0.7143 GB, free: 260 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2775, allocations: 0 / 0.7143 GB, free: 260 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.2775, allocations: 7.984 kB / 0.7143 GB, free: 252 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005182/0.2827, allocations: 2.37 MB / 0.7166 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.096e-06/0.2827, allocations: 0 / 0.7166 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.2838, allocations: 187.9 kB / 0.7168 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.2838, allocations: 4 kB / 0.7168 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-05/0.2839, allocations: 23.97 kB / 0.7169 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.2839, allocations: 8 kB / 0.7169 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2839, allocations: 7.938 kB / 0.7169 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005092/0.289, allocations: 1.982 MB / 0.7188 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005428/0.2896, allocations: 276 kB / 0.7191 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.2897, allocations: 20 kB / 0.7191 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009255/0.2907, allocations: 115.8 kB / 0.7192 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.2908, allocations: 52.44 kB / 0.7192 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.088e-05/0.2908, allocations: 31.97 kB / 0.7193 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0009454/0.2918, allocations: 0.7638 MB / 0.72 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.6e-07/0.2918, allocations: 4 kB / 0.72 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001137/0.2929, allocations: 347.3 kB / 0.7204 GB, free: 9.941 MB / 0.5606 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 (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.00684/0.2998, allocations: 3.086 MB / 0.7234 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003407/0.3032, allocations: 1.114 MB / 0.7245 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3033, allocations: 0 / 0.7245 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00164/0.3049, allocations: 0.5736 MB / 0.725 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.307, allocations: 450.8 kB / 0.7255 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/0.3248, allocations: 9.627 MB / 0.7349 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006806/0.3255, allocations: 1.104 MB / 0.7359 GB, free: 9.719 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009925/0.3265, allocations: 248.6 kB / 0.7362 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006203/0.3271, allocations: 463.2 kB / 0.7366 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of SimCode: time 7.31e-07/0.3271, allocations: 0 / 0.7366 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3868/0.714, allocations: 30.64 MB / 0.7665 GB, free: 90.63 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.98/10.69, allocations: 14.48 kB / 0.7665 GB, free: 90.62 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)