Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001306/0.001306, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001696/0.001696, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.32/1.32, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002264/0.002264, allocations: 282.4 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9512/0.9512, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 94.53 kB / 0.5947 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1687, allocations: 86.98 MB / 0.6796 GB, free: 1.07 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02739/0.1961, allocations: 29.09 MB / 0.708 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009408/0.2056, allocations: 6.841 MB / 0.7147 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.2066, allocations: 43.69 kB / 0.7148 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.208, allocations: 0.6144 MB / 0.7154 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003078/0.2112, allocations: 1.357 MB / 0.7167 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002465/0.2136, allocations: 1.055 MB / 0.7177 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002667/0.2163, allocations: 2.489 MB / 0.7201 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000975/0.2173, allocations: 0.8139 MB / 0.7209 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001557/0.2189, allocations: 1.023 MB / 0.7219 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009621/0.2198, allocations: 0.852 MB / 0.7228 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.22, allocations: 64 kB / 0.7228 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.2216, allocations: 0.842 MB / 0.7237 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.2219, allocations: 278.9 kB / 0.7239 GB, free: 3.566 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004955/0.2224, allocations: 0.5515 MB / 0.7245 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001867/0.2243, allocations: 1.616 MB / 0.726 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2243, allocations: 0 / 0.726 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2243, allocations: 0 / 0.726 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.32e-05/0.2243, allocations: 0 / 0.726 GB, free: 1.391 MB / 0.5137 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.002398/0.2267, allocations: 1.57 MB / 0.7276 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.2268, allocations: 8.031 kB / 0.7276 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003517/0.2303, allocations: 0.5962 MB / 0.7282 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.2315, allocations: 0.8017 MB / 0.7289 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.2316, allocations: 58.36 kB / 0.729 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.2317, allocations: 79.94 kB / 0.7291 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.2342, allocations: 1.105 MB / 0.7302 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.2342, allocations: 3.938 kB / 0.7302 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.568e-05/0.2343, allocations: 32 kB / 0.7302 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.2343, allocations: 20 kB / 0.7302 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.2373, allocations: 0.9962 MB / 0.7312 GB, free: 11.93 MB / 0.5294 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.006247/0.2436, allocations: 4.943 MB / 0.736 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/0.2464, allocations: 0.9035 MB / 0.7369 GB, free: 5.793 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.2479, allocations: 486.2 kB / 0.7374 GB, free: 5.312 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00145/0.2493, allocations: 1.584 MB / 0.7389 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001603/0.2509, allocations: 0.5884 MB / 0.7395 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.805e-06/0.251, allocations: 0 / 0.7395 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004642/0.2556, allocations: 1.473 MB / 0.7409 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.2557, allocations: 59.95 kB / 0.741 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.257, allocations: 1.12 MB / 0.7421 GB, free: 100 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.697e-05/0.257, allocations: 37.7 kB / 0.7421 GB, free: 56 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004244/0.2575, allocations: 0.5434 MB / 0.7426 GB, free: 15.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.2577, allocations: 209.1 kB / 0.7428 GB, free: 15.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002539/0.2579, allocations: 170.4 kB / 0.743 GB, free: 15.12 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2581, allocations: 330 kB / 0.7433 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.2595, allocations: 453.6 kB / 0.7437 GB, free: 14.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.2611, allocations: 0.7128 MB / 0.7444 GB, free: 13.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002891/0.264, allocations: 1.121 MB / 0.7455 GB, free: 12.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.264, allocations: 3.938 kB / 0.7455 GB, free: 12.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003402/0.2674, allocations: 1.278 MB / 0.7468 GB, free: 11.01 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.2675, allocations: 8.938 kB / 0.7468 GB, free: 11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.2675, allocations: 8 kB / 0.7468 GB, free: 10.99 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.2675, allocations: 12 kB / 0.7468 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.2687, allocations: 271.5 kB / 0.7471 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-05/0.2688, allocations: 19.92 kB / 0.7471 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.27, allocations: 199 kB / 0.7473 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.995e-05/0.2701, allocations: 43.98 kB / 0.7473 GB, free: 10.46 MB / 0.545 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.0004554/0.2706, allocations: 297 kB / 0.7476 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.2708, allocations: 126.4 kB / 0.7477 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003691/0.2745, allocations: 1.359 MB / 0.7491 GB, free: 8.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/0.2745, allocations: 15.98 kB / 0.7491 GB, free: 8.664 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2745, allocations: 0 / 0.7491 GB, free: 8.664 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2745, allocations: 3.984 kB / 0.7491 GB, free: 8.66 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004827/0.2794, allocations: 2.37 MB / 0.7514 GB, free: 6.215 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.2794, allocations: 4 kB / 0.7514 GB, free: 6.211 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.2804, allocations: 179.9 kB / 0.7516 GB, free: 6.035 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.2805, allocations: 8 kB / 0.7516 GB, free: 6.027 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.706e-05/0.2805, allocations: 31.91 kB / 0.7516 GB, free: 5.996 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.2805, allocations: 4 kB / 0.7516 GB, free: 5.992 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2806, allocations: 0 / 0.7516 GB, free: 5.992 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004899/0.2855, allocations: 1.981 MB / 0.7535 GB, free: 3.977 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004415/0.2859, allocations: 275.4 kB / 0.7538 GB, free: 3.688 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.2861, allocations: 16 kB / 0.7538 GB, free: 3.672 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.2871, allocations: 123.8 kB / 0.7539 GB, free: 3.551 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.2873, allocations: 48.44 kB / 0.754 GB, free: 3.504 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.436e-05/0.2873, allocations: 35.97 kB / 0.754 GB, free: 3.469 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009399/0.2883, allocations: 0.7638 MB / 0.7548 GB, free: 2.699 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.41e-07/0.2883, allocations: 0 / 0.7548 GB, free: 2.699 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001035/0.2893, allocations: 347.5 kB / 0.7551 GB, free: 2.359 MB / 0.545 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.001446/0.2908, allocations: 0.6607 MB / 0.7557 GB, free: 1.855 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003557/0.2944, allocations: 1.184 MB / 0.7569 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2944, allocations: 0 / 0.7569 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.296, allocations: 0.5697 MB / 0.7574 GB, free: 100 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.298, allocations: 458.8 kB / 0.7579 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004844/0.3028, allocations: 2.732 MB / 0.7606 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.3035, allocations: 1.108 MB / 0.7616 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001077/0.3046, allocations: 247.3 kB / 0.7619 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.305, allocations: 111.3 kB / 0.762 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of SimCode: time 8.82e-07/0.305, allocations: 0 / 0.762 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of Templates: time 0.2796/0.5846, allocations: 19.71 MB / 0.7812 GB, free: 91.5 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)