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.009746/0.009746, allocations: 96.17 kB / 15.73 MB, free: 6.039 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.002142/0.002142, allocations: 199.5 kB / 16.68 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8732/0.8732, allocations: 132.2 MB / 422.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 60.2 kB / 0.5809 GB, free: 1.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1886, allocations: 80.22 MB / 0.6592 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03174/0.2204, allocations: 29.33 MB / 0.6879 GB, free: 492 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01097/0.2314, allocations: 6.871 MB / 0.6946 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.2332, allocations: 51.62 kB / 0.6946 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.2351, allocations: 0.6875 MB / 0.6953 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004372/0.2395, allocations: 1.456 MB / 0.6967 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.2426, allocations: 1.16 MB / 0.6979 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004182/0.2468, allocations: 2.473 MB / 0.7003 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.2485, allocations: 0.7906 MB / 0.7011 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/0.251, allocations: 1.015 MB / 0.702 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001303/0.2523, allocations: 0.8208 MB / 0.7028 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.2525, allocations: 68 kB / 0.7029 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002079/0.2546, allocations: 0.8149 MB / 0.7037 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000349/0.2549, allocations: 275 kB / 0.704 GB, free: 15.95 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007048/0.2556, allocations: 0.5553 MB / 0.7045 GB, free: 15.39 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002899/0.2585, allocations: 1.638 MB / 0.7061 GB, free: 13.75 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2586, allocations: 0 / 0.7061 GB, free: 13.75 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2586, allocations: 0 / 0.7061 GB, free: 13.75 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.305e-05/0.2586, allocations: 0 / 0.7061 GB, free: 13.75 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.002812/0.2614, allocations: 1.611 MB / 0.7077 GB, free: 12.08 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.2615, allocations: 12.03 kB / 0.7077 GB, free: 12.07 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.2616, allocations: 118.7 kB / 0.7078 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003511/0.2651, allocations: 0.5931 MB / 0.7084 GB, free: 11.35 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.2666, allocations: 0.884 MB / 0.7093 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.542e-05/0.2667, allocations: 61.98 kB / 0.7093 GB, free: 10.35 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.2669, allocations: 72 kB / 0.7094 GB, free: 10.28 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/0.2694, allocations: 1.096 MB / 0.7105 GB, free: 9.102 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.2695, allocations: 7.938 kB / 0.7105 GB, free: 9.094 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.2696, allocations: 32 kB / 0.7105 GB, free: 9.062 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.2696, allocations: 16 kB / 0.7105 GB, free: 9.047 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003182/0.2728, allocations: 0.9962 MB / 0.7115 GB, free: 8.051 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.006233/0.279, allocations: 4.955 MB / 0.7163 GB, free: 2.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003101/0.2822, allocations: 0.899 MB / 0.7172 GB, free: 1.898 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.2837, allocations: 490.2 kB / 0.7177 GB, free: 1.418 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001587/0.2853, allocations: 1.584 MB / 0.7192 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001776/0.2871, allocations: 0.5806 MB / 0.7198 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 2.915e-06/0.2871, allocations: 0 / 0.7198 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.005113/0.2922, allocations: 1.486 MB / 0.7212 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.2923, allocations: 59.97 kB / 0.7213 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.2938, allocations: 1.116 MB / 0.7224 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.614e-05/0.2939, allocations: 41.7 kB / 0.7224 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005399/0.2944, allocations: 0.5559 MB / 0.723 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.2947, allocations: 222.1 kB / 0.7232 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002842/0.295, allocations: 170.5 kB / 0.7233 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.2951, allocations: 337.9 kB / 0.7237 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.2967, allocations: 453.6 kB / 0.7241 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001865/0.2986, allocations: 0.7164 MB / 0.7248 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003316/0.3019, allocations: 1.12 MB / 0.7259 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.3019, allocations: 0 / 0.7259 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003905/0.3058, allocations: 1.275 MB / 0.7271 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.3059, allocations: 8 kB / 0.7271 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.3059, allocations: 8 kB / 0.7271 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.306, allocations: 12 kB / 0.7272 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.3072, allocations: 276.2 kB / 0.7274 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/0.3073, allocations: 12 kB / 0.7274 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.3086, allocations: 187.2 kB / 0.7276 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.3087, allocations: 39.98 kB / 0.7276 GB, free: 6.555 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.0005288/0.3092, allocations: 312.9 kB / 0.7279 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.3095, allocations: 123.2 kB / 0.7281 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004167/0.3136, allocations: 1.361 MB / 0.7294 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.3137, allocations: 11.98 kB / 0.7294 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3137, allocations: 0 / 0.7294 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3137, allocations: 3.984 kB / 0.7294 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005371/0.3191, allocations: 2.37 MB / 0.7317 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.3191, allocations: 4 kB / 0.7317 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.3202, allocations: 183.9 kB / 0.7319 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.3202, allocations: 4 kB / 0.7319 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-05/0.3203, allocations: 35.91 kB / 0.7319 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.847e-06/0.3203, allocations: 4 kB / 0.7319 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3203, allocations: 3.938 kB / 0.7319 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005515/0.3258, allocations: 1.974 MB / 0.7339 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006069/0.3265, allocations: 284 kB / 0.7341 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.3266, allocations: 23.94 kB / 0.7342 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000924/0.3276, allocations: 107.9 kB / 0.7343 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.3277, allocations: 48.5 kB / 0.7343 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.212e-05/0.3278, allocations: 35.97 kB / 0.7343 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001054/0.3289, allocations: 0.7638 MB / 0.7351 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.11e-07/0.3289, allocations: 0 / 0.7351 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001289/0.3302, allocations: 351.3 kB / 0.7354 GB, free: 14.45 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.007796/0.338, allocations: 3.082 MB / 0.7384 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003593/0.3416, allocations: 1.11 MB / 0.7395 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3416, allocations: 0 / 0.7395 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.3433, allocations: 0.5775 MB / 0.7401 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.3456, allocations: 457.2 kB / 0.7405 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01927/0.3649, allocations: 9.623 MB / 0.7499 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007784/0.3657, allocations: 1.108 MB / 0.751 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0009959/0.3667, allocations: 239.9 kB / 0.7512 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006905/0.3674, allocations: 463.2 kB / 0.7517 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of SimCode: time 9.62e-07/0.3674, allocations: 3.938 kB / 0.7517 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06561/0.433, allocations: 30.64 MB / 0.7816 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.6, allocations: 4.594 kB / 0.7816 GB, free: 15.32 MB / 0.6231 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)