Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_IDEAS_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.009576/0.009576, allocations: 100.1 kB / 15.73 MB, free: 6.055 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.001627/0.001628, allocations: 190.2 kB / 16.67 MB, free: 5.969 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7899/0.7899, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.62 kB / 0.5809 GB, free: 24.08 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1759, allocations: 80.21 MB / 0.6592 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03666/0.2126, allocations: 29.33 MB / 0.6879 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01149/0.2241, allocations: 6.874 MB / 0.6946 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.2259, allocations: 43.69 kB / 0.6946 GB, free: 6.348 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002007/0.228, allocations: 0.7109 MB / 0.6953 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004302/0.2323, allocations: 1.508 MB / 0.6968 GB, free: 4.117 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003622/0.2359, allocations: 1.158 MB / 0.6979 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003652/0.2396, allocations: 2.485 MB / 0.7004 GB, free: 492 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.2412, allocations: 0.7945 MB / 0.7011 GB, free: 15.67 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002287/0.2435, allocations: 1.043 MB / 0.7021 GB, free: 14.62 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.245, allocations: 0.813 MB / 0.7029 GB, free: 13.8 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000255/0.2452, allocations: 72 kB / 0.703 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002013/0.2473, allocations: 0.8265 MB / 0.7038 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004012/0.2477, allocations: 275 kB / 0.7041 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008246/0.2485, allocations: 0.5475 MB / 0.7046 GB, free: 12.09 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00299/0.2515, allocations: 1.642 MB / 0.7062 GB, free: 10.44 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2515, allocations: 0 / 0.7062 GB, free: 10.44 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2515, allocations: 0 / 0.7062 GB, free: 10.44 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.209e-05/0.2516, allocations: 0 / 0.7062 GB, free: 10.44 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.003416/0.255, allocations: 1.611 MB / 0.7078 GB, free: 8.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.2551, allocations: 15.97 kB / 0.7078 GB, free: 8.754 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001816/0.2553, allocations: 118.7 kB / 0.7079 GB, free: 8.629 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003506/0.2588, allocations: 0.5892 MB / 0.7085 GB, free: 8.039 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.2604, allocations: 0.8841 MB / 0.7094 GB, free: 7.102 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.178e-05/0.2604, allocations: 57.98 kB / 0.7094 GB, free: 7.043 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.2607, allocations: 72 kB / 0.7095 GB, free: 6.973 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.2632, allocations: 1.107 MB / 0.7106 GB, free: 5.785 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.2632, allocations: 0 / 0.7106 GB, free: 5.785 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.081e-05/0.2633, allocations: 32 kB / 0.7106 GB, free: 5.754 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.2633, allocations: 16 kB / 0.7106 GB, free: 5.738 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003225/0.2666, allocations: 1.004 MB / 0.7116 GB, free: 4.734 MB / 0.545 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.006627/0.2732, allocations: 4.948 MB / 0.7164 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/0.2761, allocations: 0.9029 MB / 0.7173 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.2776, allocations: 486.2 kB / 0.7178 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001445/0.2791, allocations: 1.588 MB / 0.7193 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.2807, allocations: 0.5768 MB / 0.7199 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 2.715e-06/0.2807, allocations: 0 / 0.7199 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.004787/0.2855, allocations: 1.493 MB / 0.7213 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.2856, allocations: 55.97 kB / 0.7214 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.2871, allocations: 1.116 MB / 0.7225 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.245e-05/0.2872, allocations: 41.7 kB / 0.7225 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004641/0.2877, allocations: 0.5481 MB / 0.7231 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.2879, allocations: 230.1 kB / 0.7233 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002716/0.2882, allocations: 166.6 kB / 0.7234 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2883, allocations: 337.8 kB / 0.7238 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001454/0.2898, allocations: 453.6 kB / 0.7242 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/0.2914, allocations: 0.7164 MB / 0.7249 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/0.2946, allocations: 1.128 MB / 0.726 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.2946, allocations: 0 / 0.726 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003806/0.2984, allocations: 1.275 MB / 0.7272 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.2984, allocations: 8 kB / 0.7272 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.2985, allocations: 8 kB / 0.7273 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.22e-05/0.2985, allocations: 12 kB / 0.7273 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.2997, allocations: 271.9 kB / 0.7275 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.2998, allocations: 15.94 kB / 0.7275 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.3011, allocations: 179.2 kB / 0.7277 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.3013, allocations: 43.98 kB / 0.7278 GB, free: 3.234 MB / 0.5606 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.0005411/0.3018, allocations: 305 kB / 0.728 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003059/0.3021, allocations: 123.2 kB / 0.7282 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003928/0.3061, allocations: 1.362 MB / 0.7295 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.3061, allocations: 7.984 kB / 0.7295 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3061, allocations: 4 kB / 0.7295 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.3061, allocations: 3.984 kB / 0.7295 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005421/0.3116, allocations: 2.37 MB / 0.7318 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.3116, allocations: 3.984 kB / 0.7318 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.3126, allocations: 187.8 kB / 0.732 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.385e-05/0.3127, allocations: 4 kB / 0.732 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.339e-05/0.3127, allocations: 27.91 kB / 0.732 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/0.3128, allocations: 7.938 kB / 0.732 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3128, allocations: 8 kB / 0.732 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00538/0.3182, allocations: 1.97 MB / 0.734 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006701/0.3189, allocations: 284 kB / 0.7342 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.3192, allocations: 23.88 kB / 0.7343 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.3203, allocations: 111.8 kB / 0.7344 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.3204, allocations: 48.5 kB / 0.7344 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/0.3205, allocations: 31.97 kB / 0.7344 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001353/0.3219, allocations: 0.7638 MB / 0.7352 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.61e-07/0.3219, allocations: 0 / 0.7352 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00161/0.3235, allocations: 359.3 kB / 0.7355 GB, free: 11.12 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 (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.007981/0.3315, allocations: 3.084 MB / 0.7385 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00373/0.3353, allocations: 1.114 MB / 0.7396 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3353, allocations: 0 / 0.7396 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.337, allocations: 0.5775 MB / 0.7402 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/0.3393, allocations: 450.7 kB / 0.7406 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3637/0.703, allocations: 9.609 MB / 0.75 GB, free: 81.05 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007881/0.7038, allocations: 1.103 MB / 0.7511 GB, free: 80.34 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001027/0.7049, allocations: 247.9 kB / 0.7513 GB, free: 80.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006222/0.7055, allocations: 463.1 kB / 0.7518 GB, free: 80.32 MB / 0.5762 GB Notification: Performance of SimCode: time 1.072e-06/0.7055, allocations: 1.469 kB / 0.7518 GB, free: 80.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0633/0.7688, allocations: 30.65 MB / 0.7817 GB, free: 67.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/11.18, allocations: 2.031 kB / 0.7817 GB, free: 67.23 MB / 0.5762 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)