Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.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.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, 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.001033/0.001033, allocations: 194.9 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.421/1.421, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002163, allocations: 278.8 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.006/1.006, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 96.55 kB / 0.5947 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1574, allocations: 86.98 MB / 0.6796 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.4553/0.6128, allocations: 114.1 MB / 0.7911 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0313/0.6441, allocations: 26.4 MB / 0.8169 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004729/0.6489, allocations: 105.8 kB / 0.817 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00309/0.652, allocations: 0.9788 MB / 0.8179 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00948/0.6615, allocations: 3.181 MB / 0.821 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.007009/0.6685, allocations: 2.143 MB / 0.8231 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.009017/0.6776, allocations: 6.224 MB / 0.8292 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004214/0.6818, allocations: 1.898 MB / 0.831 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01206/0.6939, allocations: 2.658 MB / 0.8336 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0043/0.6982, allocations: 1.821 MB / 0.8354 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001176/0.6994, allocations: 218.4 kB / 0.8356 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007076/0.7065, allocations: 2.377 MB / 0.8379 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0009222/0.7074, allocations: 0.5401 MB / 0.8385 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002855/0.7103, allocations: 1.287 MB / 0.8397 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006863/0.7172, allocations: 4.098 MB / 0.8437 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.7172, allocations: 0 / 0.8437 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.7172, allocations: 2.5 kB / 0.8437 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001039/0.7173, allocations: 0 / 0.8437 GB, free: 2.789 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.00575/0.7231, allocations: 2.825 MB / 0.8465 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.7231, allocations: 9.688 kB / 0.8465 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007694/0.7239, allocations: 261.2 kB / 0.8467 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004257/0.7282, allocations: 2.101 MB / 0.8488 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.507e-05/0.7283, allocations: 103.4 kB / 0.8489 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000229/0.7285, allocations: 135.1 kB / 0.849 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002709/0.7312, allocations: 1.451 MB / 0.8504 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.184e-05/0.7313, allocations: 10.66 kB / 0.8505 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.7314, allocations: 61.62 kB / 0.8505 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/0.7315, allocations: 36.62 kB / 0.8505 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002036/0.7335, allocations: 1.028 MB / 0.8516 GB, free: 13.51 MB / 0.5762 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.01132/0.7448, allocations: 8.116 MB / 0.8595 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.7464, allocations: 0.8369 MB / 0.8603 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005879/0.747, allocations: 379.6 kB / 0.8607 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002569/0.7496, allocations: 2.806 MB / 0.8634 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.7496, allocations: 45.22 kB / 0.8634 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 2.765e-06/0.7496, allocations: 0 / 0.8634 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.00261/0.7523, allocations: 1.123 MB / 0.8645 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.7523, allocations: 62.44 kB / 0.8646 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/0.7553, allocations: 1.605 MB / 0.8662 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.661e-05/0.7554, allocations: 43.39 kB / 0.8662 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007555/0.7562, allocations: 0.9288 MB / 0.8671 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/0.7565, allocations: 309.5 kB / 0.8674 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003909/0.7569, allocations: 226.8 kB / 0.8676 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.7571, allocations: 356.7 kB / 0.868 GB, free: 15 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007431/0.7579, allocations: 329.1 kB / 0.8683 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.7589, allocations: 0.7101 MB / 0.869 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.7606, allocations: 1.078 MB / 0.87 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/0.7606, allocations: 2.656 kB / 0.87 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002798/0.7634, allocations: 1.252 MB / 0.8712 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.7635, allocations: 8 kB / 0.8713 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.906e-05/0.7635, allocations: 20.7 kB / 0.8713 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.976e-05/0.7635, allocations: 23.98 kB / 0.8713 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008506/0.7644, allocations: 263.5 kB / 0.8716 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.742e-05/0.7644, allocations: 19.94 kB / 0.8716 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.7661, allocations: 186.8 kB / 0.8717 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.7663, allocations: 67.98 kB / 0.8718 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001243/0.7675, allocations: 0.6242 MB / 0.8724 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001068/0.7686, allocations: 0.7071 MB / 0.8731 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001688/0.7703, allocations: 1.081 MB / 0.8742 GB, free: 9.102 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.588e-06/0.7703, allocations: 0 / 0.8742 GB, free: 9.102 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002561/0.7729, allocations: 1.242 MB / 0.8754 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.7729, allocations: 16.03 kB / 0.8754 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.14e-05/0.773, allocations: 16 kB / 0.8754 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.773, allocations: 16 kB / 0.8754 GB, free: 7.82 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/0.7738, allocations: 263.5 kB / 0.8757 GB, free: 7.562 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.289e-05/0.7738, allocations: 31.91 kB / 0.8757 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.7754, allocations: 143.2 kB / 0.8758 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.7756, allocations: 67.97 kB / 0.8759 GB, free: 7.324 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003695/0.7759, allocations: 252.5 kB / 0.8762 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000444/0.7764, allocations: 189.7 kB / 0.8763 GB, free: 6.883 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003306/0.7797, allocations: 1.745 MB / 0.878 GB, free: 5.137 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.275e-05/0.7797, allocations: 19.98 kB / 0.8781 GB, free: 5.117 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.7798, allocations: 0 / 0.8781 GB, free: 5.117 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001776/0.7815, allocations: 1.146 MB / 0.8792 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005738/0.7873, allocations: 3.48 MB / 0.8826 GB, free: 336 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.636e-05/0.7873, allocations: 12 kB / 0.8826 GB, free: 324 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008085/0.7881, allocations: 208.5 kB / 0.8828 GB, free: 116 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-05/0.7882, allocations: 15.98 kB / 0.8828 GB, free: 100 kB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.44e-05/0.7883, allocations: 39.97 kB / 0.8828 GB, free: 60 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.271e-05/0.7883, allocations: 15.94 kB / 0.8829 GB, free: 44 kB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.7883, allocations: 8 kB / 0.8829 GB, free: 36 kB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/0.7919, allocations: 2.23 MB / 0.885 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007858/0.7927, allocations: 442 kB / 0.8855 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004314/0.7932, allocations: 32 kB / 0.8855 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.7945, allocations: 95.77 kB / 0.8856 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.7947, allocations: 124.6 kB / 0.8857 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.7948, allocations: 59.97 kB / 0.8858 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001829/0.7967, allocations: 1.075 MB / 0.8868 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.653e-06/0.7967, allocations: 0 / 0.8868 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003564/0.8003, allocations: 1.131 MB / 0.8879 GB, free: 10.73 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 6 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,pipNoMix.del.x,pipNoMix.timDel.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 27 * When equations: 0 * 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.001731/0.802, allocations: 0.775 MB / 0.8887 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003983/0.806, allocations: 1.91 MB / 0.8905 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.806, allocations: 0 / 0.8905 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.8072, allocations: 0.8183 MB / 0.8913 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004304/0.8115, allocations: 0.9788 MB / 0.8923 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006245/0.8178, allocations: 4.363 MB / 0.8965 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.819, allocations: 1.436 MB / 0.8979 GB, free: 360 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002219/0.8212, allocations: 0.5432 MB / 0.8985 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/0.8217, allocations: 191.3 kB / 0.8987 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of SimCode: time 4.91e-07/0.8217, allocations: 0 / 0.8987 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of Templates: time 0.06659/0.8883, allocations: 42.56 MB / 0.9402 GB, free: 5.738 MB / 0.6544 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe 2>&1)