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.00113/0.00113, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.00108/0.00108, allocations: 187 kB / 17.34 MB, free: 5.719 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7582/0.7582, allocations: 132.2 MB / 423.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.14 kB / 0.582 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.169, allocations: 80.21 MB / 0.6604 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03101/0.2001, allocations: 29.33 MB / 0.689 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01077/0.2109, allocations: 6.874 MB / 0.6957 GB, free: 5.887 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.2126, allocations: 47.69 kB / 0.6958 GB, free: 5.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.2146, allocations: 0.6914 MB / 0.6964 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00439/0.2191, allocations: 1.458 MB / 0.6979 GB, free: 3.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003345/0.2225, allocations: 1.152 MB / 0.699 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003731/0.2262, allocations: 2.477 MB / 0.7014 GB, free: 60 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.2279, allocations: 0.7943 MB / 0.7022 GB, free: 15.24 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002487/0.2304, allocations: 1.047 MB / 0.7032 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.2321, allocations: 0.813 MB / 0.704 GB, free: 13.38 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.2325, allocations: 64 kB / 0.7041 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002422/0.235, allocations: 0.8265 MB / 0.7049 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004172/0.2354, allocations: 275 kB / 0.7051 GB, free: 12.21 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008463/0.2363, allocations: 0.5514 MB / 0.7057 GB, free: 11.66 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002795/0.2391, allocations: 1.635 MB / 0.7073 GB, free: 10.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2391, allocations: 0 / 0.7073 GB, free: 10.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.164e-06/0.2391, allocations: 0 / 0.7073 GB, free: 10.02 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.593e-05/0.2391, allocations: 0 / 0.7073 GB, free: 10.02 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.002542/0.2417, allocations: 1.574 MB / 0.7088 GB, free: 8.391 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2417, allocations: 8.031 kB / 0.7088 GB, free: 8.383 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003369/0.2451, allocations: 0.5845 MB / 0.7094 GB, free: 7.797 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.2466, allocations: 0.8793 MB / 0.7102 GB, free: 6.863 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.299e-05/0.2466, allocations: 57.98 kB / 0.7103 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.2468, allocations: 72 kB / 0.7104 GB, free: 6.734 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.2492, allocations: 1.092 MB / 0.7114 GB, free: 5.562 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.2492, allocations: 7.938 kB / 0.7114 GB, free: 5.555 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-05/0.2493, allocations: 28 kB / 0.7115 GB, free: 5.527 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.2493, allocations: 20 kB / 0.7115 GB, free: 5.508 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002918/0.2522, allocations: 1.008 MB / 0.7125 GB, free: 4.5 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.005708/0.2579, allocations: 4.939 MB / 0.7173 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002858/0.2608, allocations: 0.9067 MB / 0.7182 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.2622, allocations: 487.1 kB / 0.7186 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001398/0.2636, allocations: 1.591 MB / 0.7202 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001666/0.2653, allocations: 0.5651 MB / 0.7208 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 4.459e-06/0.2653, allocations: 0 / 0.7208 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.004841/0.2702, allocations: 1.493 MB / 0.7222 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.2703, allocations: 55.97 kB / 0.7223 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.2719, allocations: 1.112 MB / 0.7233 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.136e-05/0.272, allocations: 41.7 kB / 0.7234 GB, free: 8.617 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004734/0.2725, allocations: 0.5472 MB / 0.7239 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.2727, allocations: 209.1 kB / 0.7241 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/0.273, allocations: 162.5 kB / 0.7243 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.2731, allocations: 341.9 kB / 0.7246 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.2746, allocations: 453.6 kB / 0.725 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.2764, allocations: 0.7125 MB / 0.7257 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003044/0.2795, allocations: 1.12 MB / 0.7268 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.2795, allocations: 4 kB / 0.7268 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003887/0.2834, allocations: 1.278 MB / 0.7281 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.2834, allocations: 8 kB / 0.7281 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.2835, allocations: 8 kB / 0.7281 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.23e-05/0.2835, allocations: 12 kB / 0.7281 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.2847, allocations: 263.8 kB / 0.7284 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.923e-05/0.2847, allocations: 19.94 kB / 0.7284 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.2861, allocations: 182.9 kB / 0.7286 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.2862, allocations: 43.98 kB / 0.7286 GB, free: 3.039 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.0005874/0.2868, allocations: 309.8 kB / 0.7289 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000351/0.2872, allocations: 118.5 kB / 0.729 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004048/0.2912, allocations: 1.353 MB / 0.7303 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/0.2913, allocations: 11.98 kB / 0.7303 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.2913, allocations: 0 / 0.7303 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.2913, allocations: 7.984 kB / 0.7303 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005398/0.2967, allocations: 2.358 MB / 0.7326 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.2967, allocations: 4.125 kB / 0.7326 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.2978, allocations: 187.8 kB / 0.7328 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.977e-05/0.2978, allocations: 4 kB / 0.7328 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-05/0.2979, allocations: 27.97 kB / 0.7329 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.2979, allocations: 7.938 kB / 0.7329 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2979, allocations: 7.938 kB / 0.7329 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005252/0.3032, allocations: 1.973 MB / 0.7348 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005699/0.3038, allocations: 267.4 kB / 0.7351 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.3041, allocations: 23.94 kB / 0.7351 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.3051, allocations: 111.8 kB / 0.7352 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.3052, allocations: 52.44 kB / 0.7352 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.613e-05/0.3053, allocations: 31.97 kB / 0.7353 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001065/0.3064, allocations: 0.7638 MB / 0.736 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3064, allocations: 0 / 0.736 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001214/0.3076, allocations: 351.5 kB / 0.7363 GB, free: 10.96 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.001745/0.3094, allocations: 0.6664 MB / 0.737 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003955/0.3134, allocations: 1.107 MB / 0.7381 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.3134, allocations: 0 / 0.7381 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001834/0.3152, allocations: 0.5775 MB / 0.7386 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/0.3181, allocations: 458.3 kB / 0.7391 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005373/0.3235, allocations: 2.372 MB / 0.7414 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008883/0.3244, allocations: 1.102 MB / 0.7425 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004706/0.3249, allocations: 119.4 kB / 0.7426 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of SimCode: time 1.102e-06/0.3249, allocations: 4 kB / 0.7426 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of Templates: time 0.3899/0.7148, allocations: 19.14 MB / 0.7613 GB, free: 79.09 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)