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.006042/0.006042, allocations: 102.2 kB / 15.73 MB, free: 6.051 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.001248/0.001248, allocations: 196.3 kB / 16.67 MB, free: 5.977 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002212/0.002212, allocations: 290.6 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9705/0.9705, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 101 kB / 0.6814 GB, free: 15.49 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1738, allocations: 86.97 MB / 0.7664 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.4424/0.6162, allocations: 115.2 MB / 0.8788 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03567/0.6519, allocations: 26.55 MB / 0.9048 GB, free: 5.27 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005643/0.6576, allocations: 115.4 kB / 0.9049 GB, free: 5.156 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003611/0.6612, allocations: 1.145 MB / 0.906 GB, free: 4.004 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.009958/0.6712, allocations: 3.421 MB / 0.9093 GB, free: 0.5703 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.006596/0.6778, allocations: 2.356 MB / 0.9116 GB, free: 14.22 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008756/0.6866, allocations: 6.188 MB / 0.9177 GB, free: 8.023 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002836/0.6895, allocations: 1.931 MB / 0.9196 GB, free: 6.059 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005719/0.6952, allocations: 2.686 MB / 0.9222 GB, free: 3.367 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002715/0.6979, allocations: 1.77 MB / 0.9239 GB, free: 1.59 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004702/0.6984, allocations: 223.9 kB / 0.9241 GB, free: 1.371 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004893/0.7033, allocations: 2.344 MB / 0.9264 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.000608/0.7039, allocations: 0.537 MB / 0.9269 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001774/0.7057, allocations: 1.279 MB / 0.9282 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.006442/0.7122, allocations: 4.116 MB / 0.9322 GB, free: 9.074 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.7122, allocations: 0 / 0.9322 GB, free: 9.074 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.943e-06/0.7122, allocations: 0 / 0.9322 GB, free: 9.074 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 3.872e-05/0.7123, allocations: 0 / 0.9322 GB, free: 9.074 MB / 0.6856 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.005111/0.7174, allocations: 2.837 MB / 0.935 GB, free: 6.176 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.7174, allocations: 8.031 kB / 0.935 GB, free: 6.168 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006362/0.7181, allocations: 257.1 kB / 0.9352 GB, free: 5.914 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00389/0.722, allocations: 2.142 MB / 0.9373 GB, free: 3.719 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.81e-05/0.7221, allocations: 102.7 kB / 0.9374 GB, free: 3.617 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.7222, allocations: 136 kB / 0.9376 GB, free: 3.484 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.7246, allocations: 1.469 MB / 0.939 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.7247, allocations: 3.938 kB / 0.939 GB, free: 1.934 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.7248, allocations: 52 kB / 0.939 GB, free: 1.883 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.623e-05/0.7248, allocations: 36 kB / 0.9391 GB, free: 1.848 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.7267, allocations: 1.025 MB / 0.9401 GB, free: 0.8164 MB / 0.6856 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.008148/0.7348, allocations: 8.139 MB / 0.948 GB, free: 7.977 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.7363, allocations: 0.8301 MB / 0.9488 GB, free: 7.125 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005773/0.7369, allocations: 384 kB / 0.9492 GB, free: 6.754 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002056/0.739, allocations: 2.8 MB / 0.9519 GB, free: 3.328 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.739, allocations: 43.22 kB / 0.952 GB, free: 3.277 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=85): time 3.086e-06/0.739, allocations: 0 / 0.952 GB, free: 3.277 MB / 0.7012 GB Notification: Performance of matching and sorting (n=85): time 0.002217/0.7412, allocations: 1.124 MB / 0.9531 GB, free: 2.152 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.7413, allocations: 64.05 kB / 0.9531 GB, free: 2.074 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.7433, allocations: 1.625 MB / 0.9547 GB, free: 416 kB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.038e-05/0.7434, allocations: 41.7 kB / 0.9548 GB, free: 368 kB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007599/0.7442, allocations: 0.9471 MB / 0.9557 GB, free: 15.4 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002463/0.7444, allocations: 295.6 kB / 0.956 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/0.7448, allocations: 230.7 kB / 0.9562 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.7449, allocations: 349.9 kB / 0.9565 GB, free: 14.53 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005703/0.7455, allocations: 325.9 kB / 0.9568 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008551/0.7463, allocations: 0.7033 MB / 0.9575 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.7478, allocations: 1.089 MB / 0.9586 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.7478, allocations: 4 kB / 0.9586 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002259/0.7501, allocations: 1.249 MB / 0.9598 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.7501, allocations: 8.906 kB / 0.9598 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/0.7502, allocations: 19.98 kB / 0.9598 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/0.7502, allocations: 24 kB / 0.9599 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008174/0.751, allocations: 259.6 kB / 0.9601 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.888e-05/0.7511, allocations: 37.92 kB / 0.9601 GB, free: 10.49 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.7521, allocations: 130.6 kB / 0.9603 GB, free: 10.36 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.7522, allocations: 71.97 kB / 0.9603 GB, free: 10.29 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001037/0.7533, allocations: 0.6197 MB / 0.9609 GB, free: 9.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008603/0.7541, allocations: 0.6994 MB / 0.9616 GB, free: 8.797 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001479/0.7556, allocations: 1.081 MB / 0.9627 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.961e-06/0.7556, allocations: 4 kB / 0.9627 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002075/0.7577, allocations: 1.246 MB / 0.9639 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.7577, allocations: 12 kB / 0.9639 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/0.7578, allocations: 15.98 kB / 0.9639 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.7578, allocations: 20 kB / 0.9639 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.7586, allocations: 255.6 kB / 0.9642 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.7586, allocations: 19.94 kB / 0.9642 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009355/0.7595, allocations: 115.1 kB / 0.9643 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-05/0.7597, allocations: 59.98 kB / 0.9644 GB, free: 5.812 MB / 0.7169 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.0002627/0.7599, allocations: 252.5 kB / 0.9646 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003084/0.7602, allocations: 189.7 kB / 0.9648 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/0.7633, allocations: 1.738 MB / 0.9665 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.244e-05/0.7633, allocations: 19.98 kB / 0.9665 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.7633, allocations: 3.938 kB / 0.9665 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001683/0.765, allocations: 1.146 MB / 0.9676 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005147/0.7702, allocations: 3.482 MB / 0.971 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.512e-05/0.7702, allocations: 12.8 kB / 0.9711 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.7709, allocations: 207.7 kB / 0.9713 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.771, allocations: 8 kB / 0.9713 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.041e-05/0.771, allocations: 43.97 kB / 0.9713 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.595e-05/0.7711, allocations: 15.94 kB / 0.9713 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.7711, allocations: 11.94 kB / 0.9713 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003136/0.7742, allocations: 2.23 MB / 0.9735 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006462/0.7749, allocations: 434.1 kB / 0.9739 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.7751, allocations: 39.92 kB / 0.974 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000841/0.776, allocations: 44.09 kB / 0.974 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.7761, allocations: 128.6 kB / 0.9741 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.617e-05/0.7763, allocations: 55.97 kB / 0.9742 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001459/0.7777, allocations: 1.091 MB / 0.9752 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7777, allocations: 0 / 0.9752 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0027/0.7804, allocations: 1.135 MB / 0.9763 GB, free: 9.195 MB / 0.7325 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.001417/0.7819, allocations: 0.8 MB / 0.9771 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002901/0.7848, allocations: 1.808 MB / 0.9789 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7848, allocations: 0 / 0.9789 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.786, allocations: 0.8229 MB / 0.9797 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004202/0.7902, allocations: 0.97 MB / 0.9806 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/0.7953, allocations: 3.576 MB / 0.9841 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000996/0.7964, allocations: 1.436 MB / 0.9855 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001772/0.7981, allocations: 0.5411 MB / 0.9861 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.7985, allocations: 187.3 kB / 0.9862 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of SimCode: time 7.31e-07/0.7985, allocations: 0 / 0.9862 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of Templates: time 0.06974/0.8683, allocations: 43.4 MB / 1.029 GB, free: 4.062 MB / 0.7794 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)