Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_dev_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.001562/0.001562, allocations: 112.5 kB / 15.73 MB, free: 76 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.001867/0.001867, allocations: 189.2 kB / 16.66 MB, free: 6.582 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9404/0.9404, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 63.91 kB / 0.5852 GB, free: 3.812 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.4302, allocations: 80.92 MB / 0.6642 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02885/0.4592, allocations: 29.34 MB / 0.6928 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01133/0.4705, allocations: 6.866 MB / 0.6995 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.4722, allocations: 46.5 kB / 0.6996 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.4739, allocations: 0.7004 MB / 0.7003 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004007/0.4779, allocations: 1.514 MB / 0.7017 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002953/0.4809, allocations: 1.161 MB / 0.7029 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003583/0.4845, allocations: 2.488 MB / 0.7053 GB, free: 6.117 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0013/0.4858, allocations: 0.7883 MB / 0.7061 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002102/0.4879, allocations: 1.041 MB / 0.7071 GB, free: 5.012 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.4891, allocations: 0.8122 MB / 0.7079 GB, free: 4.551 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.4892, allocations: 74.22 kB / 0.708 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.4912, allocations: 0.8215 MB / 0.7088 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003004/0.4915, allocations: 275 kB / 0.709 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006426/0.4922, allocations: 0.5553 MB / 0.7096 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002606/0.4948, allocations: 1.647 MB / 0.7112 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4948, allocations: 0 / 0.7112 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.126e-06/0.4948, allocations: 0 / 0.7112 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.842e-05/0.4949, allocations: 3.938 kB / 0.7112 GB, free: 1.336 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.002772/0.4976, allocations: 1.608 MB / 0.7127 GB, free: 15.66 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.4977, allocations: 12.03 kB / 0.7128 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.4978, allocations: 118.7 kB / 0.7129 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003569/0.5014, allocations: 0.5931 MB / 0.7135 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.5032, allocations: 0.884 MB / 0.7143 GB, free: 14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.037e-05/0.5032, allocations: 58 kB / 0.7144 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.5034, allocations: 75.98 kB / 0.7144 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/0.506, allocations: 1.096 MB / 0.7155 GB, free: 12.69 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.506, allocations: 7.938 kB / 0.7155 GB, free: 12.68 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.049e-05/0.5061, allocations: 32 kB / 0.7156 GB, free: 12.65 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.5061, allocations: 16 kB / 0.7156 GB, free: 12.63 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003141/0.5093, allocations: 0.9962 MB / 0.7165 GB, free: 11.64 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.00617/0.5155, allocations: 4.951 MB / 0.7214 GB, free: 6.402 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/0.5185, allocations: 0.9089 MB / 0.7223 GB, free: 5.488 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.52, allocations: 490.4 kB / 0.7227 GB, free: 5.008 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001495/0.5215, allocations: 1.591 MB / 0.7243 GB, free: 3.062 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001826/0.5234, allocations: 0.5768 MB / 0.7248 GB, free: 2.477 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 5.09e-06/0.5234, allocations: 0 / 0.7248 GB, free: 2.477 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.005001/0.5284, allocations: 1.489 MB / 0.7263 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.5285, allocations: 63.95 kB / 0.7264 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.5299, allocations: 1.112 MB / 0.7274 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.5301, allocations: 37.7 kB / 0.7275 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.5305, allocations: 0.5598 MB / 0.728 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/0.5308, allocations: 222.2 kB / 0.7282 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.5311, allocations: 166.6 kB / 0.7284 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5312, allocations: 337.9 kB / 0.7287 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/0.5328, allocations: 453.6 kB / 0.7292 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.5345, allocations: 0.7128 MB / 0.7299 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003331/0.5378, allocations: 1.117 MB / 0.7309 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.5378, allocations: 0 / 0.7309 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003832/0.5417, allocations: 1.279 MB / 0.7322 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.5417, allocations: 8 kB / 0.7322 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.5418, allocations: 8 kB / 0.7322 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.5418, allocations: 12.09 kB / 0.7322 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.5431, allocations: 271.9 kB / 0.7325 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.997e-05/0.5431, allocations: 19.92 kB / 0.7325 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.5444, allocations: 187.2 kB / 0.7327 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.5445, allocations: 39.98 kB / 0.7327 GB, free: 10.14 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.0005021/0.545, allocations: 299.7 kB / 0.733 GB, free: 9.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.5453, allocations: 127.2 kB / 0.7331 GB, free: 9.715 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/0.5492, allocations: 1.355 MB / 0.7344 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.289e-05/0.5492, allocations: 11.98 kB / 0.7345 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5493, allocations: 0 / 0.7345 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.5493, allocations: 0 / 0.7345 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.5546, allocations: 2.378 MB / 0.7368 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.5546, allocations: 4 kB / 0.7368 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.5557, allocations: 191.7 kB / 0.737 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.5557, allocations: 4 kB / 0.737 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.466e-05/0.5558, allocations: 31.91 kB / 0.737 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/0.5558, allocations: 4 kB / 0.737 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5558, allocations: 4 kB / 0.737 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005229/0.5611, allocations: 1.974 MB / 0.7389 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005379/0.5616, allocations: 284 kB / 0.7392 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.5618, allocations: 19.94 kB / 0.7392 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009462/0.5628, allocations: 115.8 kB / 0.7393 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.932e-05/0.5629, allocations: 52.44 kB / 0.7394 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.792e-05/0.563, allocations: 35.97 kB / 0.7394 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00104/0.564, allocations: 0.7599 MB / 0.7402 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.51e-07/0.564, allocations: 0 / 0.7402 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001219/0.5652, allocations: 351.4 kB / 0.7405 GB, free: 2.023 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.007088/0.5723, allocations: 3.077 MB / 0.7435 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003705/0.5761, allocations: 1.118 MB / 0.7446 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.5761, allocations: 3.938 kB / 0.7446 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.5778, allocations: 0.5697 MB / 0.7452 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.5803, allocations: 460.2 kB / 0.7456 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02011/0.6004, allocations: 9.615 MB / 0.755 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009152/0.6014, allocations: 1.104 MB / 0.7561 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001095/0.6025, allocations: 248.6 kB / 0.7563 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008443/0.6033, allocations: 463.2 kB / 0.7567 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of SimCode: time 1.522e-06/0.6034, allocations: 0 / 0.7567 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06536/0.6687, allocations: 30.64 MB / 0.7867 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.86, allocations: 14.53 kB / 0.7867 GB, free: 2.805 MB / 0.6075 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)