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.001334/0.001334, allocations: 104 kB / 15.6 MB, free: 148 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.001491/0.001491, allocations: 196.1 kB / 16.53 MB, free: 6.625 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9813/0.9813, allocations: 135.1 MB / 425.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001562, allocations: 69.59 kB / 0.5055 GB, free: 5.203 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1742, allocations: 80.92 MB / 0.5845 GB, free: 4.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.3899/0.5642, allocations: 29.31 MB / 0.6131 GB, free: 36 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01011/0.5743, allocations: 6.887 MB / 0.6198 GB, free: 34.96 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.5759, allocations: 44.62 kB / 0.6199 GB, free: 34.94 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.5774, allocations: 0.691 MB / 0.6205 GB, free: 34.63 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003447/0.5809, allocations: 1.45 MB / 0.622 GB, free: 33.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002711/0.5836, allocations: 1.148 MB / 0.6231 GB, free: 33.27 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002692/0.5863, allocations: 2.476 MB / 0.6255 GB, free: 32.16 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.5874, allocations: 0.7878 MB / 0.6263 GB, free: 31.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.5889, allocations: 1.01 MB / 0.6273 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007721/0.5897, allocations: 0.8099 MB / 0.628 GB, free: 31.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.5898, allocations: 66.44 kB / 0.6281 GB, free: 31.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.5914, allocations: 0.8214 MB / 0.6289 GB, free: 30.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.5916, allocations: 276.7 kB / 0.6292 GB, free: 30.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003995/0.592, allocations: 0.5528 MB / 0.6297 GB, free: 30.26 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.5938, allocations: 1.608 MB / 0.6313 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5938, allocations: 0 / 0.6313 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5938, allocations: 0 / 0.6313 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.324e-05/0.5938, allocations: 0 / 0.6313 GB, free: 29.63 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.002165/0.596, allocations: 1.569 MB / 0.6328 GB, free: 28.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.596, allocations: 8.844 kB / 0.6328 GB, free: 28.57 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.5961, allocations: 111.2 kB / 0.6329 GB, free: 28.49 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003271/0.5994, allocations: 0.5874 MB / 0.6335 GB, free: 28.39 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.6005, allocations: 0.8094 MB / 0.6343 GB, free: 27.88 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.639e-05/0.6005, allocations: 63.16 kB / 0.6344 GB, free: 27.85 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.6006, allocations: 80.53 kB / 0.6344 GB, free: 27.82 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.6027, allocations: 1.096 MB / 0.6355 GB, free: 27.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.6028, allocations: 6.906 kB / 0.6355 GB, free: 27.3 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.443e-05/0.6029, allocations: 33.19 kB / 0.6355 GB, free: 27.28 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.6029, allocations: 20.33 kB / 0.6356 GB, free: 27.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.6057, allocations: 0.9959 MB / 0.6365 GB, free: 27.02 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.004435/0.6101, allocations: 4.947 MB / 0.6414 GB, free: 23.17 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/0.6129, allocations: 0.8973 MB / 0.6422 GB, free: 22.92 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.6143, allocations: 497.5 kB / 0.6427 GB, free: 22.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001111/0.6154, allocations: 1.595 MB / 0.6443 GB, free: 20.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00151/0.6169, allocations: 0.5759 MB / 0.6448 GB, free: 20.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=61): time 3.567e-06/0.6169, allocations: 0 / 0.6448 GB, free: 20.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=61): time 0.00459/0.6215, allocations: 1.477 MB / 0.6463 GB, free: 20.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.6216, allocations: 61.44 kB / 0.6463 GB, free: 20.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.6231, allocations: 1.119 MB / 0.6474 GB, free: 19.88 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.092e-05/0.6231, allocations: 38.27 kB / 0.6475 GB, free: 19.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.6235, allocations: 0.5455 MB / 0.648 GB, free: 19.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.6237, allocations: 205.6 kB / 0.6482 GB, free: 19.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.624, allocations: 166.6 kB / 0.6484 GB, free: 19.17 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.539e-05/0.6241, allocations: 337.7 kB / 0.6487 GB, free: 18.85 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.6257, allocations: 449 kB / 0.6491 GB, free: 18.74 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.6279, allocations: 0.713 MB / 0.6498 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003454/0.6314, allocations: 1.114 MB / 0.6509 GB, free: 17.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.6314, allocations: 2.062 kB / 0.6509 GB, free: 17.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004114/0.6355, allocations: 1.276 MB / 0.6521 GB, free: 17.3 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.6355, allocations: 12.47 kB / 0.6522 GB, free: 17.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.6356, allocations: 7.125 kB / 0.6522 GB, free: 17.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.751e-05/0.6356, allocations: 12.34 kB / 0.6522 GB, free: 17.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.6369, allocations: 271.4 kB / 0.6524 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.861e-05/0.637, allocations: 19.53 kB / 0.6524 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.6383, allocations: 188.8 kB / 0.6526 GB, free: 17.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.6384, allocations: 43.89 kB / 0.6527 GB, free: 17.19 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.0004891/0.6389, allocations: 291.7 kB / 0.6529 GB, free: 16.99 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.6391, allocations: 123.4 kB / 0.6531 GB, free: 16.92 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003987/0.6431, allocations: 1.358 MB / 0.6544 GB, free: 16.51 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.166e-05/0.6431, allocations: 13.08 kB / 0.6544 GB, free: 16.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.6432, allocations: 5.359 kB / 0.6544 GB, free: 16.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.6432, allocations: 3.422 kB / 0.6544 GB, free: 16.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005524/0.6487, allocations: 2.377 MB / 0.6567 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.6487, allocations: 5.938 kB / 0.6567 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.6498, allocations: 187.5 kB / 0.6569 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.6498, allocations: 4.156 kB / 0.6569 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-05/0.6499, allocations: 29.84 kB / 0.6569 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.927e-06/0.6499, allocations: 4.734 kB / 0.657 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.289e-06/0.6499, allocations: 6.406 kB / 0.657 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005407/0.6554, allocations: 1.972 MB / 0.6589 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005666/0.6559, allocations: 275.3 kB / 0.6591 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.6561, allocations: 23.17 kB / 0.6592 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009534/0.6571, allocations: 101.9 kB / 0.6593 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.6572, allocations: 53.67 kB / 0.6593 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.6573, allocations: 32.91 kB / 0.6594 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001056/0.6584, allocations: 0.7711 MB / 0.6601 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6584, allocations: 0 / 0.6601 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001316/0.6597, allocations: 348 kB / 0.6604 GB, free: 14.07 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.007/0.6667, allocations: 3.072 MB / 0.6634 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004153/0.6709, allocations: 1.185 MB / 0.6646 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6709, allocations: 1.125 kB / 0.6646 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.6726, allocations: 0.5804 MB / 0.6652 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.6749, allocations: 461.9 kB / 0.6656 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01939/0.6943, allocations: 10.2 MB / 0.6756 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006883/0.695, allocations: 1.104 MB / 0.6766 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0013/0.6964, allocations: 239.5 kB / 0.6769 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005981/0.697, allocations: 465.4 kB / 0.6773 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of SimCode: time 9.32e-07/0.697, allocations: 0 / 0.6773 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06471/0.7617, allocations: 30.32 MB / 0.7069 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.966, allocations: 13.83 kB / 0.7069 GB, free: 14.53 MB / 0.5294 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)