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.001848/0.001848, 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.002134/0.002134, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.433/1.433, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002611/0.002611, allocations: 294.8 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.062/1.062, allocations: 178.6 MB / 0.507 GB, free: 4.703 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 100.3 kB / 0.6059 GB, free: 25.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1699, allocations: 89.14 MB / 0.693 GB, free: 4.691 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.3926/0.5625, allocations: 114.1 MB / 0.8044 GB, free: 8.281 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03428/0.5968, allocations: 26.41 MB / 0.8302 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005078/0.6019, allocations: 104 kB / 0.8303 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.6054, allocations: 0.9794 MB / 0.8313 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.009994/0.6154, allocations: 3.18 MB / 0.8344 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.007166/0.6226, allocations: 2.148 MB / 0.8365 GB, free: 1.234 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.009933/0.6325, allocations: 6.219 MB / 0.8426 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003125/0.6357, allocations: 1.893 MB / 0.8444 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006348/0.642, allocations: 2.652 MB / 0.847 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003074/0.6451, allocations: 1.822 MB / 0.8488 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00035/0.6455, allocations: 218.1 kB / 0.849 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005041/0.6506, allocations: 2.377 MB / 0.8513 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006075/0.6512, allocations: 0.5384 MB / 0.8518 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001745/0.6529, allocations: 1.286 MB / 0.8531 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006432/0.6594, allocations: 4.08 MB / 0.8571 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.6594, allocations: 0 / 0.8571 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6594, allocations: 2.469 kB / 0.8571 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.164e-05/0.6594, allocations: 0 / 0.8571 GB, free: 4.395 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.005488/0.6649, allocations: 2.835 MB / 0.8598 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.665, allocations: 8.688 kB / 0.8598 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006396/0.6656, allocations: 273 kB / 0.8601 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004096/0.6697, allocations: 2.092 MB / 0.8622 GB, free: 108 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.535e-05/0.6698, allocations: 102.7 kB / 0.8623 GB, free: 4 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.6701, allocations: 136 kB / 0.8624 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002664/0.6727, allocations: 1.452 MB / 0.8638 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.435e-05/0.6728, allocations: 19.84 kB / 0.8638 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.6729, allocations: 55.94 kB / 0.8639 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.716e-05/0.673, allocations: 36 kB / 0.8639 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.675, allocations: 1.025 MB / 0.8649 GB, free: 13.2 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.009594/0.6846, allocations: 8.12 MB / 0.8728 GB, free: 4.387 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.6862, allocations: 0.829 MB / 0.8736 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006523/0.6869, allocations: 375.8 kB / 0.874 GB, free: 3.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002597/0.6895, allocations: 2.803 MB / 0.8767 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.6896, allocations: 47.19 kB / 0.8768 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=85): time 3.257e-06/0.6896, allocations: 0 / 0.8768 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85): time 0.00263/0.6922, allocations: 1.132 MB / 0.8779 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/0.6923, allocations: 60.06 kB / 0.8779 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/0.6948, allocations: 1.61 MB / 0.8795 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.695, allocations: 41.7 kB / 0.8796 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008523/0.6958, allocations: 0.9238 MB / 0.8805 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003432/0.6962, allocations: 307.5 kB / 0.8808 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003503/0.6965, allocations: 234.7 kB / 0.881 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.6967, allocations: 350.7 kB / 0.8813 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006337/0.6973, allocations: 325.9 kB / 0.8816 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.6984, allocations: 0.7125 MB / 0.8823 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.7001, allocations: 1.081 MB / 0.8834 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.7001, allocations: 8 kB / 0.8834 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002638/0.7028, allocations: 1.249 MB / 0.8846 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.7028, allocations: 15.94 kB / 0.8846 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.496e-05/0.7028, allocations: 12 kB / 0.8846 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.164e-05/0.7029, allocations: 20 kB / 0.8846 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008598/0.7038, allocations: 260 kB / 0.8849 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.868e-05/0.7038, allocations: 31.92 kB / 0.8849 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.7053, allocations: 182.5 kB / 0.8851 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.7054, allocations: 67.97 kB / 0.8852 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001287/0.7067, allocations: 0.6236 MB / 0.8858 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009913/0.7077, allocations: 0.7032 MB / 0.8865 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0017/0.7094, allocations: 1.077 MB / 0.8875 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.665e-06/0.7094, allocations: 4 kB / 0.8875 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.00255/0.712, allocations: 1.242 MB / 0.8887 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.712, allocations: 11.94 kB / 0.8887 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.7121, allocations: 19.98 kB / 0.8888 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.7121, allocations: 16 kB / 0.8888 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008358/0.7129, allocations: 259.5 kB / 0.889 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-05/0.713, allocations: 23.94 kB / 0.889 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.7142, allocations: 143.4 kB / 0.8892 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.7144, allocations: 67.92 kB / 0.8892 GB, free: 2.141 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.0003295/0.7147, allocations: 256.5 kB / 0.8895 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/0.7151, allocations: 189.7 kB / 0.8897 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003386/0.7185, allocations: 1.754 MB / 0.8914 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/0.7185, allocations: 15.98 kB / 0.8914 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.7185, allocations: 0 / 0.8914 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001896/0.7204, allocations: 1.158 MB / 0.8925 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006145/0.7266, allocations: 3.467 MB / 0.8959 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.068e-05/0.7266, allocations: 11.98 kB / 0.8959 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007608/0.7274, allocations: 207.7 kB / 0.8961 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.667e-05/0.7274, allocations: 12 kB / 0.8961 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.174e-05/0.7275, allocations: 39.98 kB / 0.8962 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.526e-05/0.7275, allocations: 11.94 kB / 0.8962 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.7276, allocations: 8 kB / 0.8962 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/0.7312, allocations: 2.238 MB / 0.8984 GB, free: 8.469 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008712/0.7321, allocations: 442.1 kB / 0.8988 GB, free: 8.016 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002913/0.7324, allocations: 28 kB / 0.8988 GB, free: 7.988 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.7335, allocations: 95.77 kB / 0.8989 GB, free: 7.895 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.7338, allocations: 120.7 kB / 0.899 GB, free: 7.777 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.7339, allocations: 64.09 kB / 0.8991 GB, free: 7.715 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001854/0.7358, allocations: 1.075 MB / 0.9001 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7358, allocations: 0 / 0.9001 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003139/0.7389, allocations: 1.131 MB / 0.9013 GB, free: 5.484 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.001776/0.7407, allocations: 0.801 MB / 0.902 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004303/0.745, allocations: 1.901 MB / 0.9039 GB, free: 2.742 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.745, allocations: 0 / 0.9039 GB, free: 2.742 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.7464, allocations: 0.8194 MB / 0.9047 GB, free: 1.902 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004418/0.7508, allocations: 0.9696 MB / 0.9056 GB, free: 0.957 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006679/0.7575, allocations: 4.373 MB / 0.9099 GB, free: 12.47 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.7587, allocations: 1.436 MB / 0.9113 GB, free: 11 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002032/0.7608, allocations: 0.5434 MB / 0.9118 GB, free: 10.47 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/0.7612, allocations: 195.3 kB / 0.912 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of SimCode: time 5.92e-07/0.7612, allocations: 0 / 0.912 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of Templates: time 0.07689/0.8381, allocations: 42.53 MB / 0.9536 GB, free: 356 kB / 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)