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.001624/0.001624, 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.00202/0.00202, allocations: 196.8 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.464/1.464, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002513/0.002513, allocations: 271 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002818/0.002818, allocations: 95.58 kB / 0.6057 GB, free: 25.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1672, allocations: 89.15 MB / 0.6928 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.4027/0.5699, allocations: 114.4 MB / 0.8045 GB, free: 8.684 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0326/0.6025, allocations: 26.71 MB / 0.8306 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004272/0.6068, allocations: 104.2 kB / 0.8307 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.6097, allocations: 0.9241 MB / 0.8316 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.009672/0.6194, allocations: 3.173 MB / 0.8347 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005938/0.6254, allocations: 2.082 MB / 0.8367 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0101/0.6355, allocations: 8.159 MB / 0.8447 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002637/0.6381, allocations: 1.581 MB / 0.8462 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006819/0.645, allocations: 2.304 MB / 0.8485 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004981/0.65, allocations: 1.768 MB / 0.8502 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0008195/0.6509, allocations: 113.5 kB / 0.8503 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008834/0.6597, allocations: 2.147 MB / 0.8524 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.6617, allocations: 447.6 kB / 0.8528 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003337/0.6651, allocations: 1.167 MB / 0.854 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006816/0.6719, allocations: 4.008 MB / 0.8579 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.6719, allocations: 4 kB / 0.8579 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.052e-06/0.672, allocations: 0 / 0.8579 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.333e-05/0.672, allocations: 0 / 0.8579 GB, free: 4.383 MB / 0.5762 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.005871/0.6779, allocations: 2.837 MB / 0.8607 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.6779, allocations: 12.03 kB / 0.8607 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006964/0.6786, allocations: 264.9 kB / 0.8609 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004242/0.6829, allocations: 2.095 MB / 0.863 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-05/0.683, allocations: 102.7 kB / 0.8631 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.6832, allocations: 136 kB / 0.8632 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002643/0.6859, allocations: 1.454 MB / 0.8646 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/0.6859, allocations: 7.906 kB / 0.8646 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.686, allocations: 55.94 kB / 0.8647 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.906e-05/0.6861, allocations: 51.88 kB / 0.8647 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.6882, allocations: 1.017 MB / 0.8657 GB, free: 12.46 MB / 0.5919 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.01001/0.6982, allocations: 8.116 MB / 0.8737 GB, free: 3.645 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.6999, allocations: 0.8336 MB / 0.8745 GB, free: 2.781 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00065/0.7005, allocations: 375.8 kB / 0.8748 GB, free: 2.414 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002517/0.7031, allocations: 2.807 MB / 0.8776 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.7031, allocations: 43.22 kB / 0.8776 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=85): time 4.679e-06/0.7031, allocations: 0 / 0.8776 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85): time 0.002523/0.7057, allocations: 1.132 MB / 0.8787 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.7057, allocations: 60.06 kB / 0.8788 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/0.7081, allocations: 1.613 MB / 0.8804 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.663e-05/0.7082, allocations: 41.7 kB / 0.8804 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008323/0.7091, allocations: 0.9238 MB / 0.8813 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.7094, allocations: 307.5 kB / 0.8816 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003463/0.7097, allocations: 226.8 kB / 0.8818 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001758/0.7099, allocations: 357.9 kB / 0.8821 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000642/0.7106, allocations: 325.9 kB / 0.8825 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.7116, allocations: 0.7072 MB / 0.8831 GB, free: 9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.7134, allocations: 1.077 MB / 0.8842 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.7134, allocations: 7.938 kB / 0.8842 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002517/0.7159, allocations: 1.253 MB / 0.8854 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.7159, allocations: 12 kB / 0.8854 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.53e-05/0.716, allocations: 14.03 kB / 0.8855 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.716, allocations: 23.98 kB / 0.8855 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008591/0.7169, allocations: 255.6 kB / 0.8857 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.969e-05/0.7169, allocations: 27.88 kB / 0.8858 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.7183, allocations: 186.7 kB / 0.8859 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.7184, allocations: 63.98 kB / 0.886 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001255/0.7197, allocations: 0.6236 MB / 0.8866 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001042/0.7207, allocations: 0.7071 MB / 0.8873 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001707/0.7224, allocations: 1.077 MB / 0.8883 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.492e-06/0.7224, allocations: 4 kB / 0.8883 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002426/0.7249, allocations: 1.245 MB / 0.8896 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.7249, allocations: 8.156 kB / 0.8896 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/0.7249, allocations: 20 kB / 0.8896 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.725, allocations: 16 kB / 0.8896 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008268/0.7258, allocations: 255.6 kB / 0.8898 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.906e-05/0.7258, allocations: 31.86 kB / 0.8899 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.7272, allocations: 139.2 kB / 0.89 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.7273, allocations: 71.91 kB / 0.8901 GB, free: 1.395 MB / 0.6075 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.0003411/0.7277, allocations: 248.5 kB / 0.8903 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.728, allocations: 197.6 kB / 0.8905 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/0.7315, allocations: 1.759 MB / 0.8922 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/0.7315, allocations: 19.98 kB / 0.8922 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.7315, allocations: 0 / 0.8922 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001945/0.7335, allocations: 1.142 MB / 0.8934 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005934/0.7394, allocations: 3.478 MB / 0.8968 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.498e-05/0.7395, allocations: 8 kB / 0.8968 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007453/0.7402, allocations: 212.5 kB / 0.897 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.585e-05/0.7402, allocations: 12 kB / 0.897 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-05/0.7403, allocations: 43.97 kB / 0.897 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.146e-05/0.7403, allocations: 8 kB / 0.897 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/0.7404, allocations: 11.94 kB / 0.897 GB, free: 10.06 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003693/0.744, allocations: 2.234 MB / 0.8992 GB, free: 7.719 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008793/0.7449, allocations: 438.1 kB / 0.8996 GB, free: 7.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.7452, allocations: 32 kB / 0.8997 GB, free: 7.238 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009781/0.7462, allocations: 95.77 kB / 0.8998 GB, free: 7.145 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.7464, allocations: 120.8 kB / 0.8999 GB, free: 7.027 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.7465, allocations: 67.95 kB / 0.8999 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00172/0.7482, allocations: 1.075 MB / 0.901 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7483, allocations: 0 / 0.901 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003374/0.7516, allocations: 1.131 MB / 0.9021 GB, free: 4.73 MB / 0.6231 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.001932/0.7536, allocations: 0.7827 MB / 0.9029 GB, free: 3.949 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00343/0.757, allocations: 1.805 MB / 0.9046 GB, free: 2.102 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.757, allocations: 4 kB / 0.9046 GB, free: 2.098 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.7584, allocations: 0.8221 MB / 0.9054 GB, free: 1.25 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004245/0.7626, allocations: 0.9147 MB / 0.9063 GB, free: 356 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006799/0.7694, allocations: 4.363 MB / 0.9106 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.7707, allocations: 1.44 MB / 0.912 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00218/0.7729, allocations: 0.5477 MB / 0.9125 GB, free: 9.863 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004707/0.7734, allocations: 187.3 kB / 0.9127 GB, free: 9.68 MB / 0.6387 GB Notification: Performance of SimCode: time 1.122e-06/0.7734, allocations: 0 / 0.9127 GB, free: 9.68 MB / 0.6387 GB Notification: Performance of Templates: time 0.07528/0.8487, allocations: 41.14 MB / 0.9529 GB, free: 1.102 MB / 0.67 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)