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.004661/0.004661, allocations: 100.9 kB / 15.73 MB, free: 6.016 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.001074/0.001074, allocations: 193 kB / 16.67 MB, free: 5.934 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7732/0.7732, allocations: 132.2 MB / 422.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 57.72 kB / 0.5814 GB, free: 23.9 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1793, allocations: 80.2 MB / 0.6597 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02825/0.2076, allocations: 29.34 MB / 0.6884 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01054/0.2182, allocations: 6.874 MB / 0.6951 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.2199, allocations: 47.69 kB / 0.6951 GB, free: 5.969 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.2217, allocations: 0.6952 MB / 0.6958 GB, free: 5.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004169/0.2259, allocations: 1.45 MB / 0.6972 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003029/0.229, allocations: 1.158 MB / 0.6983 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003572/0.2326, allocations: 2.481 MB / 0.7008 GB, free: 184 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.2337, allocations: 0.7865 MB / 0.7015 GB, free: 15.37 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.2356, allocations: 1.015 MB / 0.7025 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.2367, allocations: 0.8169 MB / 0.7033 GB, free: 13.53 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.2368, allocations: 68 kB / 0.7034 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.2387, allocations: 0.8187 MB / 0.7042 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.239, allocations: 271 kB / 0.7044 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005602/0.2396, allocations: 0.5515 MB / 0.705 GB, free: 11.82 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002183/0.2418, allocations: 1.646 MB / 0.7066 GB, free: 10.17 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2418, allocations: 0 / 0.7066 GB, free: 10.17 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2418, allocations: 0 / 0.7066 GB, free: 10.17 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.393e-05/0.2418, allocations: 0 / 0.7066 GB, free: 10.17 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.002494/0.2443, allocations: 1.619 MB / 0.7082 GB, free: 8.496 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.2444, allocations: 8.031 kB / 0.7082 GB, free: 8.488 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003265/0.2476, allocations: 0.5931 MB / 0.7088 GB, free: 7.898 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/0.2492, allocations: 0.8842 MB / 0.7096 GB, free: 6.961 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.428e-05/0.2493, allocations: 58 kB / 0.7097 GB, free: 6.902 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.2494, allocations: 75.98 kB / 0.7097 GB, free: 6.828 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002413/0.2518, allocations: 1.099 MB / 0.7108 GB, free: 5.648 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.2518, allocations: 0 / 0.7108 GB, free: 5.648 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.2519, allocations: 32 kB / 0.7109 GB, free: 5.617 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.079e-05/0.252, allocations: 20 kB / 0.7109 GB, free: 5.598 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002916/0.2549, allocations: 0.9962 MB / 0.7118 GB, free: 4.602 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.005627/0.2605, allocations: 4.952 MB / 0.7167 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002838/0.2634, allocations: 0.9067 MB / 0.7176 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.2648, allocations: 490.2 kB / 0.718 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00131/0.2661, allocations: 1.58 MB / 0.7196 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001593/0.2677, allocations: 0.5807 MB / 0.7201 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 4.067e-06/0.2677, allocations: 0 / 0.7201 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.00465/0.2724, allocations: 1.489 MB / 0.7216 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.2724, allocations: 59.97 kB / 0.7217 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.2738, allocations: 1.12 MB / 0.7227 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.893e-05/0.2738, allocations: 37.7 kB / 0.7228 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/0.2743, allocations: 0.552 MB / 0.7233 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.2745, allocations: 222.1 kB / 0.7235 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.2747, allocations: 166.5 kB / 0.7237 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2749, allocations: 334 kB / 0.724 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.2762, allocations: 457.6 kB / 0.7244 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.2778, allocations: 0.7164 MB / 0.7251 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/0.2808, allocations: 1.12 MB / 0.7262 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.2808, allocations: 4 kB / 0.7262 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003506/0.2843, allocations: 1.279 MB / 0.7275 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.2843, allocations: 8 kB / 0.7275 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2843, allocations: 8 kB / 0.7275 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.384e-05/0.2844, allocations: 16.03 kB / 0.7275 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.2855, allocations: 267.6 kB / 0.7278 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.056e-05/0.2856, allocations: 15.94 kB / 0.7278 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.2867, allocations: 183.2 kB / 0.728 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.484e-05/0.2869, allocations: 43.98 kB / 0.728 GB, free: 3.094 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.0004906/0.2873, allocations: 297.9 kB / 0.7283 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.2875, allocations: 123.2 kB / 0.7284 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003636/0.2912, allocations: 1.359 MB / 0.7297 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.2912, allocations: 15.97 kB / 0.7298 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.2912, allocations: 8 kB / 0.7298 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.2913, allocations: 3.984 kB / 0.7298 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.296, allocations: 2.374 MB / 0.7321 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.296, allocations: 0 / 0.7321 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009615/0.297, allocations: 187.9 kB / 0.7323 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.297, allocations: 4 kB / 0.7323 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.548e-05/0.2971, allocations: 23.97 kB / 0.7323 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/0.2971, allocations: 7.938 kB / 0.7323 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.2971, allocations: 7.938 kB / 0.7323 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/0.302, allocations: 1.974 MB / 0.7342 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.3025, allocations: 287.9 kB / 0.7345 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.3027, allocations: 16 kB / 0.7345 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008662/0.3035, allocations: 111.8 kB / 0.7346 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.3037, allocations: 52.44 kB / 0.7347 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.601e-05/0.3037, allocations: 35.97 kB / 0.7347 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009407/0.3047, allocations: 0.7638 MB / 0.7355 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3047, allocations: 0 / 0.7355 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001097/0.3058, allocations: 347.3 kB / 0.7358 GB, free: 10.99 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.001496/0.3073, allocations: 0.6585 MB / 0.7364 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003291/0.3106, allocations: 1.114 MB / 0.7375 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3106, allocations: 0 / 0.7375 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.3122, allocations: 0.5775 MB / 0.7381 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.3142, allocations: 467.9 kB / 0.7385 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00464/0.3188, allocations: 2.363 MB / 0.7408 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.3195, allocations: 1.104 MB / 0.7419 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008645/0.3203, allocations: 248.6 kB / 0.7422 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.3206, allocations: 107.4 kB / 0.7423 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of SimCode: time 7.51e-07/0.3207, allocations: 0 / 0.7423 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of Templates: time 0.4274/0.7481, allocations: 20 MB / 0.7618 GB, free: 78.94 MB / 0.5762 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)