Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.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.PlugFlowPipeDiscretized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 114.4 kB / 16.42 MB, free: 6.441 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.001307/0.001308, allocations: 189.6 kB / 17.35 MB, free: 5.727 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002102/0.002102, allocations: 281.9 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 99.83 kB / 0.6821 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4086, allocations: 86.97 MB / 0.767 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized): time 0.08419/0.4929, allocations: 66.54 MB / 0.832 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0225/0.5154, allocations: 16.74 MB / 0.8484 GB, free: 248 kB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003287/0.5188, allocations: 63.62 kB / 0.8484 GB, free: 184 kB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.5213, allocations: 0.8152 MB / 0.8492 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007202/0.5285, allocations: 2.557 MB / 0.8517 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005158/0.5337, allocations: 1.811 MB / 0.8535 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.03958/0.5733, allocations: 35.82 MB / 0.8885 GB, free: 7.078 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02546/0.5988, allocations: 15.77 MB / 0.9039 GB, free: 7.172 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02549/0.6243, allocations: 11.97 MB / 0.9156 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01845/0.6428, allocations: 9.699 MB / 0.925 GB, free: 1.488 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.004542/0.6474, allocations: 1.453 MB / 0.9265 GB, free: 36 kB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01116/0.6587, allocations: 3.18 MB / 0.9296 GB, free: 12.85 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.007119/0.6658, allocations: 3.287 MB / 0.9328 GB, free: 9.551 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0158/0.6816, allocations: 7.31 MB / 0.9399 GB, free: 2.211 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.7884/1.47, allocations: 21.97 MB / 0.9614 GB, free: 67.85 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.47, allocations: 0.5938 kB / 0.9614 GB, free: 67.85 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/1.47, allocations: 4.031 kB / 0.9614 GB, free: 67.85 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0005717/1.471, allocations: 3.531 kB / 0.9614 GB, free: 67.85 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1830 * Number of variables: 1830 Notification: Performance of Generate backend data structure: time 0.03332/1.504, allocations: 13.13 MB / 0.9742 GB, free: 63.35 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/1.504, allocations: 8.094 kB / 0.9742 GB, free: 63.35 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006875/1.511, allocations: 1.293 MB / 0.9755 GB, free: 62.73 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02374/1.535, allocations: 12.96 MB / 0.9881 GB, free: 61.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005027/1.535, allocations: 0.535 MB / 0.9886 GB, free: 61.05 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003255/1.539, allocations: 0.715 MB / 0.9893 GB, free: 61.04 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02674/1.565, allocations: 11.21 MB / 1 GB, free: 60.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002472/1.566, allocations: 34.05 kB / 1 GB, free: 60.08 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001641/1.567, allocations: 302 kB / 1.001 GB, free: 60.08 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/1.567, allocations: 216.7 kB / 1.001 GB, free: 60.08 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/1.584, allocations: 9.249 MB / 1.01 GB, free: 60.02 MB / 0.7169 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.06134/1.645, allocations: 52.13 MB / 1.061 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006079/1.651, allocations: 4.858 MB / 1.065 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003072/1.655, allocations: 2.832 MB / 1.068 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001151/1.656, allocations: 1.709 MB / 1.07 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.061e-05/1.656, allocations: 86.27 kB / 1.07 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=420): time 6.943e-06/1.656, allocations: 4 kB / 1.07 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of matching and sorting (n=420): time 0.01367/1.669, allocations: 7.815 MB / 1.078 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/1.67, allocations: 98.53 kB / 1.078 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01849/1.688, allocations: 10.47 MB / 1.088 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.001301/1.689, allocations: 107.3 kB / 1.088 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.004637/1.694, allocations: 4.723 MB / 1.093 GB, free: 12.57 MB / 0.7482 GB Notification: Performance of collectInitialBindings (initialization): time 0.002551/1.697, allocations: 1.487 MB / 1.094 GB, free: 11.1 MB / 0.7482 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/1.698, allocations: 1.103 MB / 1.095 GB, free: 9.984 MB / 0.7482 GB Notification: Performance of setup shared object (initialization): time 9.064e-05/1.698, allocations: 301.1 kB / 1.096 GB, free: 9.688 MB / 0.7482 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003987/1.702, allocations: 2.676 MB / 1.098 GB, free: 6.996 MB / 0.7482 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005028/1.708, allocations: 4.2 MB / 1.102 GB, free: 2.156 MB / 0.7482 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.718, allocations: 7.413 MB / 1.109 GB, free: 10.28 MB / 0.7638 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-05/1.718, allocations: 12 kB / 1.109 GB, free: 10.27 MB / 0.7638 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01474/1.732, allocations: 7.985 MB / 1.117 GB, free: 2.539 MB / 0.7638 GB Notification: Performance of prepare postOptimizeDAE: time 4.763e-05/1.732, allocations: 28 kB / 1.117 GB, free: 2.512 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/1.733, allocations: 75.97 kB / 1.117 GB, free: 2.438 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-05/1.733, allocations: 72 kB / 1.117 GB, free: 2.367 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004094/1.737, allocations: 1.204 MB / 1.119 GB, free: 1.242 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.449e-05/1.737, allocations: 105.4 kB / 1.119 GB, free: 1.16 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007776/1.745, allocations: 0.7025 MB / 1.119 GB, free: 468 kB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006174/1.745, allocations: 279.9 kB / 1.12 GB, free: 188 kB / 0.7638 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01124/1.757, allocations: 6.436 MB / 1.126 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005837/1.762, allocations: 4.194 MB / 1.13 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01069/1.773, allocations: 7.412 MB / 1.137 GB, free: 13.02 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.813e-05/1.773, allocations: 16 kB / 1.137 GB, free: 13.01 MB / 0.795 GB Notification: Performance of matching and sorting (n=694) (initialization_lambda0): time 0.01593/1.789, allocations: 7.974 MB / 1.145 GB, free: 5.289 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/1.789, allocations: 26.81 kB / 1.145 GB, free: 5.266 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/1.789, allocations: 79.97 kB / 1.145 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.441e-05/1.789, allocations: 72 kB / 1.145 GB, free: 5.117 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004371/1.794, allocations: 1.202 MB / 1.146 GB, free: 3.992 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001154/1.794, allocations: 106.6 kB / 1.147 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007471/1.801, allocations: 0.5818 MB / 1.147 GB, free: 3.324 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007799/1.802, allocations: 287.8 kB / 1.147 GB, free: 3.043 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 211 * 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 (674): * Single equations (assignments): 654 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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.001692/1.804, allocations: 0.5006 MB / 1.148 GB, free: 2.613 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00356/1.808, allocations: 0.8412 MB / 1.149 GB, free: 1.762 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01894/1.826, allocations: 8.926 MB / 1.157 GB, free: 8.988 MB / 0.8107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01058/1.837, allocations: 6.099 MB / 1.163 GB, free: 2.809 MB / 0.8107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001075/1.837, allocations: 25.28 kB / 1.163 GB, free: 2.785 MB / 0.8107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007916/1.845, allocations: 2.238 MB / 1.166 GB, free: 0.5156 MB / 0.8107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003934/1.849, allocations: 124 kB / 1.166 GB, free: 404 kB / 0.8107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008231/1.857, allocations: 327 kB / 1.166 GB, free: 80 kB / 0.8107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00178/1.859, allocations: 0.6047 MB / 1.167 GB, free: 15.47 MB / 0.8263 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01673/1.876, allocations: 7.476 MB / 1.174 GB, free: 8.008 MB / 0.8263 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02282/1.899, allocations: 12.1 MB / 1.186 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005465/1.904, allocations: 3.496 MB / 1.189 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.01765/1.922, allocations: 7.413 MB / 1.196 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of Backend: time 1.753e-06/1.922, allocations: 0 / 1.196 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.03325/1.955, allocations: 9.443 MB / 1.206 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of SimCode: time 0.06138/2.017, allocations: 25.55 MB / 1.231 GB, free: 14.05 MB / 0.8888 GB Notification: Performance of Templates: time 0.6483/2.665, allocations: 213 MB / 1.439 GB, free: 280.3 MB / 0.9513 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.pipe 2>&1)