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.0122/0.0122, allocations: 101.4 kB / 15.73 MB, free: 6.023 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.002514/0.002514, allocations: 187.7 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.178/2.178, 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/package.mo): time 1.277/1.277, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00248/0.00248, allocations: 68.11 kB / 0.5809 GB, free: 1.082 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2901, allocations: 80.2 MB / 0.6592 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.04368/0.3338, allocations: 29.34 MB / 0.6879 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01373/0.3476, allocations: 6.876 MB / 0.6946 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001724/0.3494, allocations: 47.69 kB / 0.6946 GB, free: 9.598 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.3513, allocations: 0.6875 MB / 0.6953 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004242/0.3556, allocations: 1.458 MB / 0.6967 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003278/0.3589, allocations: 1.152 MB / 0.6979 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003982/0.3629, allocations: 2.477 MB / 0.7003 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00158/0.3644, allocations: 0.7937 MB / 0.701 GB, free: 3.012 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.3671, allocations: 1.039 MB / 0.7021 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001926/0.369, allocations: 0.8209 MB / 0.7029 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003352/0.3694, allocations: 68 kB / 0.7029 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002441/0.3718, allocations: 0.8187 MB / 0.7037 GB, free: 260 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0005312/0.3724, allocations: 278.9 kB / 0.704 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001161/0.3735, allocations: 0.5553 MB / 0.7045 GB, free: 15.42 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005158/0.3787, allocations: 1.624 MB / 0.7061 GB, free: 13.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.3788, allocations: 4 kB / 0.7061 GB, free: 13.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3788, allocations: 0 / 0.7061 GB, free: 13.79 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.833e-05/0.3788, allocations: 4 kB / 0.7061 GB, free: 13.79 MB / 0.545 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.005839/0.3847, allocations: 1.57 MB / 0.7077 GB, free: 12.16 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 9.739e-05/0.3848, allocations: 8.031 kB / 0.7077 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003754/0.3852, allocations: 114.7 kB / 0.7078 GB, free: 12.03 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005963/0.3912, allocations: 0.5884 MB / 0.7084 GB, free: 11.44 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.394, allocations: 0.8752 MB / 0.7092 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.933e-05/0.3942, allocations: 58 kB / 0.7093 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.3944, allocations: 72 kB / 0.7093 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00421/0.3986, allocations: 1.099 MB / 0.7104 GB, free: 9.203 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.482e-05/0.3987, allocations: 7.938 kB / 0.7104 GB, free: 9.195 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.3988, allocations: 32 kB / 0.7104 GB, free: 9.164 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.686e-05/0.3989, allocations: 16 kB / 0.7105 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005318/0.4042, allocations: 0.9962 MB / 0.7114 GB, free: 8.152 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.01036/0.4146, allocations: 4.955 MB / 0.7163 GB, free: 2.906 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004898/0.4195, allocations: 0.899 MB / 0.7172 GB, free: 2 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002521/0.4221, allocations: 487.1 kB / 0.7176 GB, free: 1.523 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002253/0.4244, allocations: 1.587 MB / 0.7192 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002751/0.4271, allocations: 0.5729 MB / 0.7197 GB, free: 15 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 5.49e-06/0.4271, allocations: 0 / 0.7197 GB, free: 15 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.008868/0.436, allocations: 1.481 MB / 0.7212 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.422e-05/0.4361, allocations: 59.97 kB / 0.7212 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.4385, allocations: 1.116 MB / 0.7223 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.4387, allocations: 41.7 kB / 0.7224 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007561/0.4395, allocations: 0.5511 MB / 0.7229 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/0.4398, allocations: 197.2 kB / 0.7231 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004227/0.4403, allocations: 174.4 kB / 0.7233 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002046/0.4405, allocations: 341.9 kB / 0.7236 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.443, allocations: 449.6 kB / 0.724 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002646/0.4457, allocations: 0.7242 MB / 0.7247 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004931/0.4506, allocations: 1.113 MB / 0.7258 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.4507, allocations: 0 / 0.7258 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.006365/0.457, allocations: 1.27 MB / 0.727 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/0.4571, allocations: 11.98 kB / 0.7271 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.4572, allocations: 8 kB / 0.7271 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.262e-05/0.4572, allocations: 12.72 kB / 0.7271 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002132/0.4594, allocations: 271.6 kB / 0.7273 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.521e-05/0.4594, allocations: 19.92 kB / 0.7273 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.4617, allocations: 178.9 kB / 0.7275 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001855/0.4619, allocations: 47.97 kB / 0.7276 GB, free: 6.688 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.000883/0.4628, allocations: 297 kB / 0.7278 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004353/0.4633, allocations: 118.5 kB / 0.728 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004841/0.4681, allocations: 1.361 MB / 0.7293 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.352e-05/0.4682, allocations: 8 kB / 0.7293 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.4682, allocations: 0 / 0.7293 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/0.4682, allocations: 3.984 kB / 0.7293 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006051/0.4743, allocations: 2.37 MB / 0.7316 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.4743, allocations: 4 kB / 0.7316 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4754, allocations: 183.9 kB / 0.7318 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-05/0.4754, allocations: 7.938 kB / 0.7318 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.638e-05/0.4755, allocations: 35.91 kB / 0.7318 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.714e-06/0.4756, allocations: 4 kB / 0.7318 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4756, allocations: 0 / 0.7318 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005369/0.4809, allocations: 1.965 MB / 0.7338 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006711/0.4817, allocations: 287.3 kB / 0.734 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.4819, allocations: 19.94 kB / 0.7341 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.4835, allocations: 107.9 kB / 0.7342 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.4837, allocations: 52.42 kB / 0.7342 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.4838, allocations: 35.97 kB / 0.7342 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001568/0.4854, allocations: 0.7677 MB / 0.735 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.91e-07/0.4854, allocations: 0 / 0.735 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001362/0.4868, allocations: 335.6 kB / 0.7353 GB, free: 14.62 MB / 0.5762 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.007958/0.4948, allocations: 3.085 MB / 0.7383 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003745/0.4986, allocations: 1.11 MB / 0.7394 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.4986, allocations: 0 / 0.7394 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.5004, allocations: 0.5736 MB / 0.74 GB, free: 10 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/0.5031, allocations: 462.2 kB / 0.7404 GB, free: 9.574 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02241/0.5256, allocations: 9.575 MB / 0.7498 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.5268, allocations: 1.108 MB / 0.7508 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001252/0.528, allocations: 247.4 kB / 0.7511 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009338/0.529, allocations: 463.2 kB / 0.7515 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of SimCode: time 1.492e-06/0.529, allocations: 4 kB / 0.7515 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/0.63, allocations: 31.11 MB / 0.7819 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/17.07, allocations: 12.34 kB / 0.7819 GB, free: 15.06 MB / 0.6231 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)