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.007902/0.007902, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002013/0.002013, allocations: 198.6 kB / 16.68 MB, free: 5.973 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.033/1.033, allocations: 135.6 MB / 426.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 63.91 kB / 0.5858 GB, free: 3.172 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4402/0.4422, allocations: 81.02 MB / 0.6649 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03132/0.4736, allocations: 29.33 MB / 0.6936 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01142/0.4851, allocations: 6.867 MB / 0.7003 GB, free: 9.871 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.487, allocations: 46.09 kB / 0.7003 GB, free: 9.852 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002233/0.4893, allocations: 0.6946 MB / 0.701 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004614/0.4939, allocations: 1.456 MB / 0.7024 GB, free: 8.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003435/0.4974, allocations: 1.155 MB / 0.7035 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003952/0.5014, allocations: 2.478 MB / 0.706 GB, free: 5.91 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00159/0.503, allocations: 0.7946 MB / 0.7067 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002494/0.5055, allocations: 1.019 MB / 0.7077 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.5073, allocations: 0.8084 MB / 0.7085 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002765/0.5077, allocations: 72 kB / 0.7086 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002336/0.51, allocations: 0.8187 MB / 0.7094 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004715/0.5105, allocations: 278.9 kB / 0.7096 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009465/0.5115, allocations: 0.5436 MB / 0.7102 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003181/0.5147, allocations: 1.65 MB / 0.7118 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.5147, allocations: 0 / 0.7118 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.568e-05/0.5147, allocations: 0 / 0.7118 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.58e-05/0.5147, allocations: 3.938 kB / 0.7118 GB, free: 0.8828 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.002971/0.5177, allocations: 1.612 MB / 0.7134 GB, free: 15.21 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.5178, allocations: 12.03 kB / 0.7134 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.5179, allocations: 114.7 kB / 0.7135 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003588/0.5215, allocations: 0.5931 MB / 0.7141 GB, free: 14.49 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.5234, allocations: 0.8879 MB / 0.7149 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.167e-05/0.5235, allocations: 58 kB / 0.715 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.5236, allocations: 71.94 kB / 0.7151 GB, free: 13.42 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.5263, allocations: 1.107 MB / 0.7161 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.5264, allocations: 4 kB / 0.7161 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.08e-05/0.5264, allocations: 28 kB / 0.7162 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.5265, allocations: 16 kB / 0.7162 GB, free: 12.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003219/0.5297, allocations: 1 MB / 0.7172 GB, free: 11.19 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.006694/0.5364, allocations: 4.955 MB / 0.722 GB, free: 5.945 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003202/0.5396, allocations: 0.9068 MB / 0.7229 GB, free: 5.031 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.5412, allocations: 486.2 kB / 0.7233 GB, free: 4.555 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001538/0.5428, allocations: 1.588 MB / 0.7249 GB, free: 2.613 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001943/0.5448, allocations: 0.5807 MB / 0.7255 GB, free: 2.023 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 7.003e-06/0.5448, allocations: 0 / 0.7255 GB, free: 2.023 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.00535/0.5502, allocations: 1.489 MB / 0.7269 GB, free: 0.5273 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.5503, allocations: 59.97 kB / 0.727 GB, free: 468 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.5519, allocations: 1.116 MB / 0.7281 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.5521, allocations: 37.7 kB / 0.7281 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005215/0.5526, allocations: 0.5559 MB / 0.7286 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.5529, allocations: 214.3 kB / 0.7289 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/0.5532, allocations: 170.5 kB / 0.729 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5533, allocations: 341.9 kB / 0.7293 GB, free: 14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.5549, allocations: 449.6 kB / 0.7298 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/0.5568, allocations: 0.7128 MB / 0.7305 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0033/0.5601, allocations: 1.117 MB / 0.7316 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.5601, allocations: 0 / 0.7316 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004133/0.5643, allocations: 1.279 MB / 0.7328 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.5643, allocations: 8 kB / 0.7328 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/0.5644, allocations: 8 kB / 0.7328 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.648e-05/0.5644, allocations: 12 kB / 0.7328 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.5657, allocations: 272 kB / 0.7331 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.405e-05/0.5657, allocations: 19.92 kB / 0.7331 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.567, allocations: 179.2 kB / 0.7333 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.5672, allocations: 47.97 kB / 0.7333 GB, free: 9.695 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.0005666/0.5678, allocations: 303.7 kB / 0.7336 GB, free: 9.391 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.5681, allocations: 123.2 kB / 0.7337 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.5722, allocations: 1.359 MB / 0.7351 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.5723, allocations: 11.94 kB / 0.7351 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.5723, allocations: 3.984 kB / 0.7351 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.5723, allocations: 3.984 kB / 0.7351 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005428/0.5777, allocations: 2.378 MB / 0.7374 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.5778, allocations: 3.938 kB / 0.7374 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.5789, allocations: 191.7 kB / 0.7376 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.277e-05/0.5789, allocations: 4 kB / 0.7376 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.579, allocations: 31.91 kB / 0.7376 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.864e-06/0.579, allocations: 4 kB / 0.7376 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.579, allocations: 7.938 kB / 0.7376 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00557/0.5846, allocations: 1.97 MB / 0.7396 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006658/0.5853, allocations: 288 kB / 0.7398 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/0.5856, allocations: 19.94 kB / 0.7399 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.5869, allocations: 107.9 kB / 0.74 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.587, allocations: 52.42 kB / 0.74 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5872, allocations: 39.97 kB / 0.74 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001176/0.5883, allocations: 0.7599 MB / 0.7408 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5884, allocations: 0 / 0.7408 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001308/0.5897, allocations: 347.4 kB / 0.7411 GB, free: 1.57 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.007872/0.5976, allocations: 3.073 MB / 0.7441 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003737/0.6013, allocations: 1.122 MB / 0.7452 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.6014, allocations: 0 / 0.7452 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.6032, allocations: 0.5697 MB / 0.7458 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.6055, allocations: 459.5 kB / 0.7462 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02196/0.6275, allocations: 9.607 MB / 0.7556 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.6287, allocations: 1.108 MB / 0.7567 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001306/0.63, allocations: 248.6 kB / 0.7569 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008952/0.6309, allocations: 459.2 kB / 0.7573 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of SimCode: time 9.02e-07/0.6309, allocations: 0 / 0.7573 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07306/0.704, allocations: 30.65 MB / 0.7873 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/11, allocations: 15.66 kB / 0.7873 GB, free: 2.352 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)