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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6893/0.6893, allocations: 132.2 MB / 148.9 MB, free: 12.14 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 222.9 MB / 403.4 MB, free: 7.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 102 kB / 484.4 MB, free: 8.664 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001022, allocations: 59.84 kB / 0.5618 GB, free: 71.02 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1401, allocations: 80.2 MB / 0.6402 GB, free: 6.742 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02914/0.1692, allocations: 29.18 MB / 0.6687 GB, free: 9.445 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.009996/0.1793, allocations: 6.906 MB / 0.6754 GB, free: 2.52 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.181, allocations: 47.69 kB / 0.6755 GB, free: 2.473 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001888/0.1829, allocations: 0.5949 MB / 0.676 GB, free: 1.875 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00431/0.1873, allocations: 1.343 MB / 0.6773 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0035/0.1908, allocations: 1.047 MB / 0.6784 GB, free: 15.49 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.005248/0.1961, allocations: 3.23 MB / 0.6815 GB, free: 12.25 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.1977, allocations: 0.7323 MB / 0.6822 GB, free: 11.51 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.2001, allocations: 0.9607 MB / 0.6832 GB, free: 10.54 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.2016, allocations: 0.8285 MB / 0.684 GB, free: 9.711 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002412/0.2019, allocations: 44 kB / 0.684 GB, free: 9.668 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001956/0.2038, allocations: 0.76 MB / 0.6848 GB, free: 8.906 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003417/0.2042, allocations: 255 kB / 0.685 GB, free: 8.656 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007534/0.2049, allocations: 0.5358 MB / 0.6855 GB, free: 8.117 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002278/0.2072, allocations: 1.573 MB / 0.6871 GB, free: 6.539 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2072, allocations: 0 / 0.6871 GB, free: 6.539 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.2073, allocations: 0 / 0.6871 GB, free: 6.539 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.2073, allocations: 0 / 0.6871 GB, free: 6.539 MB / 490.7 MB 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.002599/0.2099, allocations: 1.559 MB / 0.6886 GB, free: 4.926 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2099, allocations: 16.02 kB / 0.6886 GB, free: 4.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003441/0.2134, allocations: 0.5845 MB / 0.6892 GB, free: 4.324 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.2147, allocations: 0.8092 MB / 0.69 GB, free: 3.461 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.242e-05/0.2148, allocations: 58 kB / 0.69 GB, free: 3.402 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.2149, allocations: 75.92 kB / 0.6901 GB, free: 3.328 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.2173, allocations: 1.096 MB / 0.6912 GB, free: 2.152 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.2174, allocations: 3.938 kB / 0.6912 GB, free: 2.148 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-05/0.2174, allocations: 28 kB / 0.6912 GB, free: 2.121 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.2175, allocations: 20 kB / 0.6912 GB, free: 2.102 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003096/0.2206, allocations: 1 MB / 0.6922 GB, free: 1.098 MB / 490.7 MB 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.2944/0.5149, allocations: 4.94 MB / 0.697 GB, free: 56.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/0.5181, allocations: 0.9011 MB / 0.6979 GB, free: 56.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.5198, allocations: 486.2 kB / 0.6984 GB, free: 56.15 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/0.5209, allocations: 1.589 MB / 0.6999 GB, free: 54.35 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001803/0.5227, allocations: 0.5735 MB / 0.7005 GB, free: 54.19 MB / 490.7 MB Notification: Performance of pre-optimization done (n=61): time 3.487e-06/0.5227, allocations: 0 / 0.7005 GB, free: 54.19 MB / 490.7 MB Notification: Performance of matching and sorting (n=61): time 0.005035/0.5277, allocations: 1.486 MB / 0.7019 GB, free: 53.85 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.5278, allocations: 58.97 kB / 0.702 GB, free: 53.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.5296, allocations: 1.12 MB / 0.7031 GB, free: 53.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.991e-05/0.5297, allocations: 39.27 kB / 0.7031 GB, free: 53.34 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/0.5301, allocations: 0.5511 MB / 0.7037 GB, free: 52.94 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.5303, allocations: 208.7 kB / 0.7038 GB, free: 52.79 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002839/0.5306, allocations: 168.7 kB / 0.704 GB, free: 52.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.696e-05/0.5306, allocations: 334.2 kB / 0.7043 GB, free: 52.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.5321, allocations: 454.5 kB / 0.7048 GB, free: 52.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.5338, allocations: 0.7156 MB / 0.7055 GB, free: 51.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003289/0.5371, allocations: 1.116 MB / 0.7066 GB, free: 51.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.5372, allocations: 2.844 kB / 0.7066 GB, free: 51.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004003/0.5412, allocations: 1.267 MB / 0.7078 GB, free: 50.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.5412, allocations: 7.969 kB / 0.7078 GB, free: 50.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.5412, allocations: 16.47 kB / 0.7078 GB, free: 50.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.895e-05/0.5413, allocations: 13.7 kB / 0.7078 GB, free: 50.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.5425, allocations: 270.7 kB / 0.7081 GB, free: 50.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.709e-05/0.5426, allocations: 16.81 kB / 0.7081 GB, free: 50.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.544, allocations: 191 kB / 0.7083 GB, free: 50.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.5441, allocations: 47.81 kB / 0.7083 GB, free: 50.77 MB / 490.7 MB 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.0005509/0.5447, allocations: 292.9 kB / 0.7086 GB, free: 50.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003307/0.545, allocations: 120.2 kB / 0.7087 GB, free: 50.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004313/0.5493, allocations: 1.37 MB / 0.7101 GB, free: 50.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/0.5493, allocations: 9.375 kB / 0.7101 GB, free: 50.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.5494, allocations: 0.8906 kB / 0.7101 GB, free: 50.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.5494, allocations: 4.141 kB / 0.7101 GB, free: 50.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005644/0.555, allocations: 2.374 MB / 0.7124 GB, free: 49.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.5551, allocations: 2.188 kB / 0.7124 GB, free: 49.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.5561, allocations: 187.4 kB / 0.7126 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-05/0.5561, allocations: 7.906 kB / 0.7126 GB, free: 49.06 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.413e-05/0.5562, allocations: 24.58 kB / 0.7126 GB, free: 49.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.5562, allocations: 4.859 kB / 0.7126 GB, free: 49.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5562, allocations: 1.594 kB / 0.7126 GB, free: 49.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/0.5662, allocations: 5 MB / 0.7175 GB, free: 46.19 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004403/0.5667, allocations: 276.6 kB / 0.7178 GB, free: 45.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.5669, allocations: 18.5 kB / 0.7178 GB, free: 45.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000997/0.5679, allocations: 124.4 kB / 0.7179 GB, free: 45.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.568, allocations: 51.91 kB / 0.7179 GB, free: 45.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.147e-05/0.5681, allocations: 34.34 kB / 0.718 GB, free: 45.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009916/0.5691, allocations: 0.7626 MB / 0.7187 GB, free: 45.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5691, allocations: 0 / 0.7187 GB, free: 45.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001625/0.5708, allocations: 426.6 kB / 0.7191 GB, free: 45.36 MB / 490.7 MB 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.00151/0.5723, allocations: 0.6516 MB / 0.7198 GB, free: 45.13 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003505/0.5758, allocations: 1.118 MB / 0.7209 GB, free: 44.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5758, allocations: 0 / 0.7209 GB, free: 44.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.5777, allocations: 0.5719 MB / 0.7214 GB, free: 44.37 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.5801, allocations: 435 kB / 0.7218 GB, free: 44.15 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005273/0.5853, allocations: 3.133 MB / 0.7249 GB, free: 42.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.5859, allocations: 1.131 MB / 0.726 GB, free: 41.17 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001072/0.587, allocations: 245.7 kB / 0.7262 GB, free: 41.05 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.5873, allocations: 102.6 kB / 0.7263 GB, free: 41.02 MB / 490.7 MB Notification: Performance of SimCode: time 7.22e-07/0.5873, allocations: 3.969 kB / 0.7263 GB, free: 41.02 MB / 490.7 MB Notification: Performance of Templates: time 0.02765/0.615, allocations: 19.65 MB / 0.7455 GB, free: 23.26 MB / 490.7 MB 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)