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.00172/0.00172, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001341/0.001341, allocations: 193.1 kB / 16.14 MB, free: 6.715 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.449/1.449, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002995/0.002995, allocations: 287.1 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.106/1.106, allocations: 178.6 MB / 0.5068 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00285/0.002851, allocations: 100.4 kB / 0.6057 GB, free: 25.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1906, allocations: 89.16 MB / 0.6928 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03217/0.2228, allocations: 29.15 MB / 0.7213 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01137/0.2342, allocations: 6.921 MB / 0.728 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.2356, allocations: 43.69 kB / 0.7281 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.2374, allocations: 0.6105 MB / 0.7287 GB, free: 8 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003753/0.2411, allocations: 1.342 MB / 0.73 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002731/0.2439, allocations: 1.036 MB / 0.731 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004044/0.2479, allocations: 3.222 MB / 0.7341 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.2494, allocations: 0.7233 MB / 0.7348 GB, free: 9.664 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002133/0.2515, allocations: 0.9334 MB / 0.7357 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.2528, allocations: 0.8363 MB / 0.7366 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.253, allocations: 44 kB / 0.7366 GB, free: 7.844 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001866/0.2548, allocations: 0.7599 MB / 0.7373 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003204/0.2552, allocations: 270.9 kB / 0.7376 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006768/0.2559, allocations: 0.5242 MB / 0.7381 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002418/0.2583, allocations: 1.565 MB / 0.7396 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.2583, allocations: 8 kB / 0.7397 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2583, allocations: 0 / 0.7397 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.566e-05/0.2583, allocations: 0 / 0.7397 GB, free: 4.711 MB / 0.5294 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.002887/0.2612, allocations: 1.562 MB / 0.7412 GB, free: 3.09 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.2613, allocations: 12.03 kB / 0.7412 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003878/0.2652, allocations: 0.5884 MB / 0.7418 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.2667, allocations: 0.8018 MB / 0.7425 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.554e-05/0.2668, allocations: 58.38 kB / 0.7426 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.2669, allocations: 75.94 kB / 0.7427 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/0.2696, allocations: 1.096 MB / 0.7437 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2696, allocations: 4 kB / 0.7438 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-05/0.2697, allocations: 32 kB / 0.7438 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.114e-05/0.2698, allocations: 20 kB / 0.7438 GB, free: 280 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003304/0.2731, allocations: 1 MB / 0.7448 GB, free: 15.27 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.006567/0.2797, allocations: 4.939 MB / 0.7496 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003108/0.2828, allocations: 0.9028 MB / 0.7505 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00156/0.2843, allocations: 490.2 kB / 0.7509 GB, free: 8.652 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001665/0.286, allocations: 1.584 MB / 0.7525 GB, free: 6.719 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001819/0.2879, allocations: 0.5768 MB / 0.7531 GB, free: 6.129 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 5.219e-06/0.2879, allocations: 0 / 0.7531 GB, free: 6.129 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.005078/0.293, allocations: 1.485 MB / 0.7545 GB, free: 4.641 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.293, allocations: 59.97 kB / 0.7546 GB, free: 4.57 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.2946, allocations: 1.124 MB / 0.7557 GB, free: 3.434 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.666e-05/0.2947, allocations: 41.7 kB / 0.7557 GB, free: 3.387 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000508/0.2952, allocations: 0.5434 MB / 0.7562 GB, free: 2.836 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.2954, allocations: 213 kB / 0.7564 GB, free: 2.625 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002899/0.2957, allocations: 166.5 kB / 0.7566 GB, free: 2.457 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2959, allocations: 334 kB / 0.7569 GB, free: 2.125 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.2974, allocations: 453.6 kB / 0.7573 GB, free: 1.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.2993, allocations: 0.7134 MB / 0.758 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3037/0.603, allocations: 1.116 MB / 0.7591 GB, free: 67.74 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/0.603, allocations: 2.625 kB / 0.7591 GB, free: 67.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004126/0.6072, allocations: 1.274 MB / 0.7604 GB, free: 67.66 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.6072, allocations: 8.438 kB / 0.7604 GB, free: 67.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.6073, allocations: 7.875 kB / 0.7604 GB, free: 67.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-05/0.6073, allocations: 15.97 kB / 0.7604 GB, free: 67.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.6086, allocations: 269.7 kB / 0.7607 GB, free: 67.64 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.418e-05/0.6087, allocations: 16.84 kB / 0.7607 GB, free: 67.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.6101, allocations: 192.4 kB / 0.7609 GB, free: 67.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.6102, allocations: 47.75 kB / 0.7609 GB, free: 67.64 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.0004649/0.6107, allocations: 293.9 kB / 0.7612 GB, free: 67.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.6109, allocations: 121.8 kB / 0.7613 GB, free: 67.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003993/0.6149, allocations: 1.357 MB / 0.7626 GB, free: 67.22 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.227e-05/0.6149, allocations: 13.7 kB / 0.7626 GB, free: 67.22 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.6149, allocations: 0 / 0.7626 GB, free: 67.22 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.6149, allocations: 3.797 kB / 0.7627 GB, free: 67.22 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005252/0.6202, allocations: 2.37 MB / 0.765 GB, free: 66.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.6202, allocations: 3.547 kB / 0.765 GB, free: 66.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.6213, allocations: 189.7 kB / 0.7652 GB, free: 66.26 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/0.6213, allocations: 8.531 kB / 0.7652 GB, free: 66.26 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.077e-05/0.6214, allocations: 24.38 kB / 0.7652 GB, free: 66.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.6214, allocations: 6.688 kB / 0.7652 GB, free: 66.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.6214, allocations: 2.344 kB / 0.7652 GB, free: 66.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005304/0.6267, allocations: 1.976 MB / 0.7671 GB, free: 65.54 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005738/0.6273, allocations: 278.9 kB / 0.7674 GB, free: 65.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.6275, allocations: 19.92 kB / 0.7674 GB, free: 65.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.6285, allocations: 118.2 kB / 0.7675 GB, free: 65.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.6287, allocations: 50.52 kB / 0.7676 GB, free: 65.31 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8e-05/0.6288, allocations: 37.64 kB / 0.7676 GB, free: 65.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009864/0.6298, allocations: 0.7627 MB / 0.7683 GB, free: 65.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6298, allocations: 3.938 kB / 0.7684 GB, free: 65.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001179/0.6309, allocations: 337.5 kB / 0.7687 GB, free: 64.97 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.001979/0.6329, allocations: 0.659 MB / 0.7693 GB, free: 64.78 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003521/0.6365, allocations: 1.104 MB / 0.7704 GB, free: 64.49 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.6365, allocations: 1.094 kB / 0.7704 GB, free: 64.49 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.6381, allocations: 0.5785 MB / 0.771 GB, free: 64.34 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.6402, allocations: 440 kB / 0.7714 GB, free: 64.22 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004613/0.6448, allocations: 2.725 MB / 0.774 GB, free: 62.74 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.6454, allocations: 1.108 MB / 0.7751 GB, free: 62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001191/0.6466, allocations: 253.1 kB / 0.7754 GB, free: 61.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.6469, allocations: 108.4 kB / 0.7755 GB, free: 61.92 MB / 0.545 GB Notification: Performance of SimCode: time 8.51e-07/0.647, allocations: 0 / 0.7755 GB, free: 61.92 MB / 0.545 GB Notification: Performance of Templates: time 0.0341/0.6811, allocations: 19.08 MB / 0.7941 GB, free: 54.36 MB / 0.545 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)