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.001522/0.001522, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 193.7 kB / 16.53 MB, free: 6.391 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 / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7478/0.7478, allocations: 132.2 MB / 422.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002443/0.002444, allocations: 68.42 kB / 0.5019 GB, free: 8.637 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1694, allocations: 80.21 MB / 0.5802 GB, free: 8.656 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.3517/0.5212, allocations: 29.33 MB / 0.6088 GB, free: 35.9 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009218/0.5304, allocations: 6.866 MB / 0.6155 GB, free: 35.71 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001372/0.5318, allocations: 48.47 kB / 0.6156 GB, free: 35.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.5333, allocations: 0.6953 MB / 0.6163 GB, free: 35.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003755/0.5372, allocations: 1.453 MB / 0.6177 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002969/0.5401, allocations: 1.154 MB / 0.6188 GB, free: 35.4 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002972/0.5431, allocations: 2.476 MB / 0.6212 GB, free: 34.57 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.5442, allocations: 0.7875 MB / 0.622 GB, free: 34.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001662/0.5458, allocations: 1.013 MB / 0.623 GB, free: 33.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009612/0.5468, allocations: 0.8059 MB / 0.6238 GB, free: 33.61 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.547, allocations: 63.91 kB / 0.6238 GB, free: 33.61 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.5489, allocations: 0.8185 MB / 0.6246 GB, free: 33.36 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002375/0.5491, allocations: 277.5 kB / 0.6249 GB, free: 33.22 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004737/0.5496, allocations: 0.5588 MB / 0.6254 GB, free: 32.88 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.5516, allocations: 1.601 MB / 0.627 GB, free: 32.36 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.5516, allocations: 0 / 0.627 GB, free: 32.36 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5516, allocations: 0 / 0.627 GB, free: 32.36 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.415e-05/0.5517, allocations: 0 / 0.627 GB, free: 32.36 MB / 0.4981 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.002232/0.5539, allocations: 1.572 MB / 0.6285 GB, free: 31.31 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.5539, allocations: 9.031 kB / 0.6286 GB, free: 31.31 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.5541, allocations: 114 kB / 0.6287 GB, free: 31.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003298/0.5574, allocations: 0.5913 MB / 0.6292 GB, free: 31.13 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.5584, allocations: 0.8119 MB / 0.63 GB, free: 30.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.5585, allocations: 61.89 kB / 0.6301 GB, free: 30.61 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.5586, allocations: 78.38 kB / 0.6302 GB, free: 30.58 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.5607, allocations: 1.099 MB / 0.6312 GB, free: 30.07 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.5607, allocations: 6.188 kB / 0.6312 GB, free: 30.06 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.011e-05/0.5608, allocations: 32.86 kB / 0.6313 GB, free: 30.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.5608, allocations: 17.78 kB / 0.6313 GB, free: 30.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00281/0.5637, allocations: 1.001 MB / 0.6323 GB, free: 29.78 MB / 0.4981 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.004776/0.5684, allocations: 4.943 MB / 0.6371 GB, free: 25.98 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002666/0.5711, allocations: 0.9012 MB / 0.638 GB, free: 25.73 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.5725, allocations: 496.3 kB / 0.6385 GB, free: 25.6 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/0.5736, allocations: 1.592 MB / 0.64 GB, free: 23.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001505/0.5751, allocations: 0.5727 MB / 0.6406 GB, free: 23.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=61): time 2.625e-06/0.5752, allocations: 0 / 0.6406 GB, free: 23.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=61): time 0.004503/0.5797, allocations: 1.483 MB / 0.642 GB, free: 23.18 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.5797, allocations: 58.22 kB / 0.6421 GB, free: 23.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.5809, allocations: 1.116 MB / 0.6432 GB, free: 22.71 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/0.5809, allocations: 40.33 kB / 0.6432 GB, free: 22.67 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/0.5813, allocations: 0.5479 MB / 0.6437 GB, free: 22.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.5815, allocations: 201.4 kB / 0.6439 GB, free: 22.08 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.5817, allocations: 170.3 kB / 0.6441 GB, free: 22 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.219e-05/0.5818, allocations: 333.6 kB / 0.6444 GB, free: 21.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.5832, allocations: 454.1 kB / 0.6448 GB, free: 21.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.5848, allocations: 0.7156 MB / 0.6455 GB, free: 21.14 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002864/0.5876, allocations: 1.114 MB / 0.6466 GB, free: 20.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.5877, allocations: 1.812 kB / 0.6466 GB, free: 20.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003778/0.5914, allocations: 1.281 MB / 0.6479 GB, free: 20.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.5915, allocations: 8.75 kB / 0.6479 GB, free: 20.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.5915, allocations: 8.094 kB / 0.6479 GB, free: 20.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.53e-05/0.5916, allocations: 11.59 kB / 0.6479 GB, free: 20.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.5928, allocations: 272.8 kB / 0.6482 GB, free: 20.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.339e-05/0.5929, allocations: 16.48 kB / 0.6482 GB, free: 20.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.5941, allocations: 176.6 kB / 0.6484 GB, free: 20.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.5942, allocations: 48.89 kB / 0.6484 GB, free: 20.04 MB / 0.4981 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.0005585/0.5948, allocations: 307.5 kB / 0.6487 GB, free: 19.83 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.5951, allocations: 118.4 kB / 0.6488 GB, free: 19.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004096/0.5992, allocations: 1.36 MB / 0.6501 GB, free: 19.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/0.5992, allocations: 9.844 kB / 0.6501 GB, free: 19.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.5992, allocations: 4.5 kB / 0.6501 GB, free: 19.35 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.5992, allocations: 4.844 kB / 0.6501 GB, free: 19.35 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005342/0.6046, allocations: 2.382 MB / 0.6525 GB, free: 18.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.6046, allocations: 1.469 kB / 0.6525 GB, free: 18.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.6057, allocations: 188 kB / 0.6527 GB, free: 18.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.6057, allocations: 8.188 kB / 0.6527 GB, free: 18.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.6058, allocations: 24.59 kB / 0.6527 GB, free: 18.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.822e-06/0.6058, allocations: 4.625 kB / 0.6527 GB, free: 18.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.6058, allocations: 7.047 kB / 0.6527 GB, free: 18.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005313/0.6111, allocations: 1.965 MB / 0.6546 GB, free: 17.56 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005418/0.6117, allocations: 283.6 kB / 0.6549 GB, free: 17.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.6118, allocations: 15.45 kB / 0.6549 GB, free: 17.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009544/0.6128, allocations: 105.2 kB / 0.655 GB, free: 17.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.6129, allocations: 52.67 kB / 0.6551 GB, free: 17.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.783e-05/0.613, allocations: 37.06 kB / 0.6551 GB, free: 17.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009845/0.614, allocations: 0.7643 MB / 0.6558 GB, free: 17.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.614, allocations: 0 / 0.6558 GB, free: 17.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001203/0.6152, allocations: 346.6 kB / 0.6562 GB, free: 16.95 MB / 0.4981 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.00658/0.6218, allocations: 3.071 MB / 0.6592 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003759/0.6256, allocations: 1.186 MB / 0.6603 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.6256, allocations: 0 / 0.6603 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.6273, allocations: 0.5748 MB / 0.6609 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.6295, allocations: 464.6 kB / 0.6613 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01985/0.6493, allocations: 10.21 MB / 0.6713 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007281/0.6501, allocations: 1.107 MB / 0.6724 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001249/0.6514, allocations: 246.8 kB / 0.6726 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005971/0.652, allocations: 461.6 kB / 0.6731 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of SimCode: time 1.292e-06/0.652, allocations: 0 / 0.6731 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05939/0.7114, allocations: 30.31 MB / 0.7027 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.278/8.989, allocations: 4.219 kB / 0.7027 GB, free: 2.82 MB / 0.5137 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)