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: translateModel(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007654/0.007654, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001757/0.001757, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7914/0.7914, allocations: 132.2 MB / 422.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.8 kB / 0.5814 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.177, allocations: 80.2 MB / 0.6597 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03195/0.209, allocations: 29.33 MB / 0.6884 GB, free: 128 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01208/0.2211, allocations: 6.882 MB / 0.6951 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.2225, allocations: 43.69 kB / 0.6951 GB, free: 9.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.2241, allocations: 0.7031 MB / 0.6958 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003669/0.2278, allocations: 1.518 MB / 0.6973 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002826/0.2307, allocations: 1.147 MB / 0.6984 GB, free: 5.812 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002962/0.2336, allocations: 2.493 MB / 0.7008 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.235, allocations: 0.7864 MB / 0.7016 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.2371, allocations: 1.047 MB / 0.7026 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.2382, allocations: 0.8169 MB / 0.7034 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.2383, allocations: 71.94 kB / 0.7035 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.2402, allocations: 0.8188 MB / 0.7043 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.2405, allocations: 275 kB / 0.7046 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005509/0.241, allocations: 0.5514 MB / 0.7051 GB, free: 14.92 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002101/0.2431, allocations: 1.635 MB / 0.7067 GB, free: 13.28 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.221e-05/0.2432, allocations: 3.984 kB / 0.7067 GB, free: 13.28 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2432, allocations: 0 / 0.7067 GB, free: 13.28 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.45e-05/0.2432, allocations: 0 / 0.7067 GB, free: 13.28 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.002498/0.2457, allocations: 1.574 MB / 0.7082 GB, free: 11.65 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2457, allocations: 12.03 kB / 0.7082 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003262/0.249, allocations: 0.5806 MB / 0.7088 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.2504, allocations: 0.8754 MB / 0.7097 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.126e-05/0.2505, allocations: 58 kB / 0.7097 GB, free: 10.07 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.2506, allocations: 72 kB / 0.7098 GB, free: 9.996 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002327/0.253, allocations: 1.099 MB / 0.7109 GB, free: 8.816 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.253, allocations: 4 kB / 0.7109 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.2531, allocations: 28 kB / 0.7109 GB, free: 8.785 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2531, allocations: 20 kB / 0.7109 GB, free: 8.766 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.256, allocations: 1.008 MB / 0.7119 GB, free: 7.758 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.005496/0.2615, allocations: 4.939 MB / 0.7167 GB, free: 2.527 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.2644, allocations: 0.9029 MB / 0.7176 GB, free: 1.617 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.2657, allocations: 491.1 kB / 0.7181 GB, free: 1.137 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001307/0.267, allocations: 1.591 MB / 0.7196 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.2686, allocations: 0.569 MB / 0.7202 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 4.148e-06/0.2686, allocations: 0 / 0.7202 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.004546/0.2732, allocations: 1.489 MB / 0.7216 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.2733, allocations: 59.97 kB / 0.7217 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.2746, allocations: 1.108 MB / 0.7228 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.843e-05/0.2747, allocations: 41.7 kB / 0.7228 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004338/0.2752, allocations: 0.5472 MB / 0.7234 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.2754, allocations: 205.2 kB / 0.7235 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.2756, allocations: 166.4 kB / 0.7237 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2758, allocations: 345.9 kB / 0.724 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.2772, allocations: 449.6 kB / 0.7245 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.2788, allocations: 0.7125 MB / 0.7252 GB, free: 9.344 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.2817, allocations: 1.128 MB / 0.7263 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.2817, allocations: 0 / 0.7263 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003426/0.2851, allocations: 1.271 MB / 0.7275 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.2851, allocations: 12 kB / 0.7275 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.2852, allocations: 8 kB / 0.7275 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.2852, allocations: 12 kB / 0.7275 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.2864, allocations: 263.6 kB / 0.7278 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.2864, allocations: 15.94 kB / 0.7278 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.2876, allocations: 186.9 kB / 0.728 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.651e-05/0.2877, allocations: 47.97 kB / 0.728 GB, free: 6.297 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.0004477/0.2881, allocations: 293.7 kB / 0.7283 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.2883, allocations: 118.5 kB / 0.7284 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003583/0.2919, allocations: 1.365 MB / 0.7298 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.2919, allocations: 11.98 kB / 0.7298 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.292, allocations: 0 / 0.7298 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.292, allocations: 3.984 kB / 0.7298 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/0.2967, allocations: 2.358 MB / 0.7321 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.2967, allocations: 4 kB / 0.7321 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.2977, allocations: 191.9 kB / 0.7323 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.2977, allocations: 4 kB / 0.7323 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-05/0.2978, allocations: 27.97 kB / 0.7323 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.796e-06/0.2978, allocations: 11.88 kB / 0.7323 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2978, allocations: 4 kB / 0.7323 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004809/0.3026, allocations: 1.973 MB / 0.7342 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/0.303, allocations: 271.4 kB / 0.7345 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.3032, allocations: 19.94 kB / 0.7345 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008967/0.3041, allocations: 115.7 kB / 0.7346 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.3042, allocations: 48.5 kB / 0.7347 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.447e-05/0.3043, allocations: 35.97 kB / 0.7347 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009351/0.3053, allocations: 0.7599 MB / 0.7354 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/0.3053, allocations: 0 / 0.7354 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001115/0.3064, allocations: 351.5 kB / 0.7358 GB, free: 14.23 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.001547/0.3079, allocations: 0.6594 MB / 0.7364 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00329/0.3112, allocations: 1.114 MB / 0.7375 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3113, allocations: 0 / 0.7375 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.3129, allocations: 0.5775 MB / 0.7381 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.3147, allocations: 457.7 kB / 0.7385 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004703/0.3195, allocations: 2.326 MB / 0.7408 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006404/0.3201, allocations: 1.104 MB / 0.7419 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008063/0.3209, allocations: 251.9 kB / 0.7421 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002966/0.3212, allocations: 107.4 kB / 0.7422 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of SimCode: time 5.91e-07/0.3213, allocations: 0 / 0.7422 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of Templates: time 0.03564/0.3569, allocations: 20.01 MB / 0.7617 GB, free: 4.066 MB / 0.5919 GB make -j1 -f IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (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 & ./IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)