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.001024/0.001024, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.001077/0.001077, allocations: 191.5 kB / 16.25 MB, free: 6.629 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.288/1.288, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7324/0.7324, allocations: 132.2 MB / 422.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 67.97 kB / 0.5014 GB, free: 9.016 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.142, allocations: 80.2 MB / 0.5797 GB, free: 9.039 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.304/0.446, allocations: 29.12 MB / 0.6081 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00811/0.4541, allocations: 6.828 MB / 0.6148 GB, free: 35.58 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.4556, allocations: 44.94 kB / 0.6148 GB, free: 35.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.457, allocations: 0.6163 MB / 0.6154 GB, free: 35.56 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003066/0.4601, allocations: 1.357 MB / 0.6167 GB, free: 35.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.4625, allocations: 1.048 MB / 0.6178 GB, free: 35.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002409/0.4649, allocations: 2.492 MB / 0.6202 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009321/0.4658, allocations: 0.806 MB / 0.621 GB, free: 34.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.4673, allocations: 1.033 MB / 0.622 GB, free: 33.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008014/0.4681, allocations: 0.8463 MB / 0.6228 GB, free: 33.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.847e-05/0.4682, allocations: 66.75 kB / 0.6229 GB, free: 33.6 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00155/0.4698, allocations: 0.8366 MB / 0.6237 GB, free: 33.33 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.47, allocations: 286.5 kB / 0.624 GB, free: 33.19 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004369/0.4704, allocations: 0.5462 MB / 0.6245 GB, free: 32.86 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001939/0.4724, allocations: 1.613 MB / 0.6261 GB, free: 32.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4724, allocations: 0 / 0.6261 GB, free: 32.34 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.144e-06/0.4724, allocations: 3.422 kB / 0.6261 GB, free: 32.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.4724, allocations: 0 / 0.6261 GB, free: 32.34 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.002243/0.4747, allocations: 1.57 MB / 0.6276 GB, free: 31.29 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.4747, allocations: 13.25 kB / 0.6276 GB, free: 31.29 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.4748, allocations: 115.3 kB / 0.6277 GB, free: 31.21 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003321/0.4782, allocations: 0.5863 MB / 0.6283 GB, free: 31.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.4793, allocations: 0.81 MB / 0.6291 GB, free: 30.62 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.4793, allocations: 59.56 kB / 0.6292 GB, free: 30.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.4794, allocations: 80.27 kB / 0.6292 GB, free: 30.56 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.4815, allocations: 1.092 MB / 0.6303 GB, free: 30.05 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.4816, allocations: 3.938 kB / 0.6303 GB, free: 30.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-05/0.4816, allocations: 36.53 kB / 0.6303 GB, free: 30.03 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.4816, allocations: 17.34 kB / 0.6304 GB, free: 30.03 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002635/0.4843, allocations: 0.9989 MB / 0.6313 GB, free: 29.76 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.004355/0.4887, allocations: 4.939 MB / 0.6362 GB, free: 25.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.4912, allocations: 0.9002 MB / 0.637 GB, free: 25.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.4925, allocations: 493.8 kB / 0.6375 GB, free: 25.58 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009678/0.4934, allocations: 1.587 MB / 0.6391 GB, free: 23.78 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001493/0.4949, allocations: 0.5821 MB / 0.6396 GB, free: 23.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=61): time 2.635e-06/0.495, allocations: 0 / 0.6396 GB, free: 23.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=61): time 0.00416/0.4991, allocations: 1.478 MB / 0.6411 GB, free: 23.17 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.4992, allocations: 57.22 kB / 0.6411 GB, free: 23.11 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.5002, allocations: 1.115 MB / 0.6422 GB, free: 22.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.095e-05/0.5003, allocations: 38.98 kB / 0.6423 GB, free: 22.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.5005, allocations: 0.5501 MB / 0.6428 GB, free: 22.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.5007, allocations: 206.8 kB / 0.643 GB, free: 22.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.5009, allocations: 163.7 kB / 0.6431 GB, free: 21.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.767e-05/0.501, allocations: 340.5 kB / 0.6435 GB, free: 21.67 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.5022, allocations: 455.3 kB / 0.6439 GB, free: 21.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.5037, allocations: 0.7162 MB / 0.6446 GB, free: 21.12 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002717/0.5064, allocations: 1.118 MB / 0.6457 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.5064, allocations: 2.438 kB / 0.6457 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003404/0.5098, allocations: 1.269 MB / 0.6469 GB, free: 20.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.5099, allocations: 8.75 kB / 0.6469 GB, free: 20.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5099, allocations: 11.81 kB / 0.647 GB, free: 20.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/0.5099, allocations: 12.03 kB / 0.647 GB, free: 20.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.5112, allocations: 272.6 kB / 0.6472 GB, free: 20.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.301e-05/0.5112, allocations: 15 kB / 0.6472 GB, free: 20.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.5125, allocations: 197.4 kB / 0.6474 GB, free: 20.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.5126, allocations: 46.91 kB / 0.6475 GB, free: 20.02 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.000433/0.513, allocations: 303.4 kB / 0.6478 GB, free: 19.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.5132, allocations: 119 kB / 0.6479 GB, free: 19.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.5169, allocations: 1.357 MB / 0.6492 GB, free: 19.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.5169, allocations: 12.59 kB / 0.6492 GB, free: 19.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.5169, allocations: 5.828 kB / 0.6492 GB, free: 19.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.517, allocations: 3 kB / 0.6492 GB, free: 19.33 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004972/0.5219, allocations: 2.374 MB / 0.6515 GB, free: 18.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.522, allocations: 1.641 kB / 0.6515 GB, free: 18.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.523, allocations: 193.6 kB / 0.6517 GB, free: 18.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.405e-06/0.523, allocations: 3.922 kB / 0.6517 GB, free: 18.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-05/0.5231, allocations: 25.47 kB / 0.6518 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.884e-06/0.5231, allocations: 4.375 kB / 0.6518 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.5231, allocations: 10.75 kB / 0.6518 GB, free: 18.29 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004853/0.528, allocations: 1.971 MB / 0.6537 GB, free: 17.54 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.5285, allocations: 279.3 kB / 0.654 GB, free: 17.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.5286, allocations: 22.36 kB / 0.654 GB, free: 17.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009461/0.5296, allocations: 118.5 kB / 0.6541 GB, free: 17.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.5297, allocations: 52.67 kB / 0.6541 GB, free: 17.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-05/0.5298, allocations: 34.11 kB / 0.6542 GB, free: 17.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008611/0.5306, allocations: 0.7634 MB / 0.6549 GB, free: 17 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5307, allocations: 0 / 0.6549 GB, free: 17 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001047/0.5317, allocations: 339.7 kB / 0.6553 GB, free: 16.93 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.006148/0.5379, allocations: 3.09 MB / 0.6583 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00339/0.5413, allocations: 1.186 MB / 0.6594 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5413, allocations: 1 kB / 0.6594 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.5428, allocations: 0.5728 MB / 0.66 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/0.5449, allocations: 456.5 kB / 0.6604 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.5631, allocations: 10.54 MB / 0.6707 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.5637, allocations: 1.111 MB / 0.6718 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001254/0.565, allocations: 242 kB / 0.672 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006141/0.5656, allocations: 461.6 kB / 0.6725 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of SimCode: time 4.61e-07/0.5656, allocations: 0 / 0.6725 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04835/0.614, allocations: 30.06 MB / 0.7018 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.6142, allocations: 238.7 kB / 0.7021 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/3.143, allocations: 0 / 0.7021 GB, free: 2.859 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)