Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, 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.001683/0.001683, allocations: 198.7 kB / 16.26 MB, free: 6.625 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.268/2.268, allocations: 390.2 MB / 0.6644 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.89 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6308/0.632, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.1028/0.7349, allocations: 114.2 MB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.03464/0.7695, allocations: 26.39 MB / 1.086 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004355/0.7739, allocations: 107.4 kB / 1.087 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003509/0.7775, allocations: 0.9792 MB / 1.088 GB, free: 3.945 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.009105/0.7866, allocations: 3.18 MB / 1.091 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006077/0.7927, allocations: 2.139 MB / 1.093 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.008223/0.8009, allocations: 6.224 MB / 1.099 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003154/0.8041, allocations: 1.898 MB / 1.101 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006248/0.8104, allocations: 2.65 MB / 1.103 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.8134, allocations: 1.816 MB / 1.105 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005957/0.814, allocations: 220 kB / 1.105 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005267/0.8193, allocations: 2.382 MB / 1.108 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0008206/0.8201, allocations: 0.5409 MB / 1.108 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003002/0.8231, allocations: 1.291 MB / 1.109 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00918/0.8323, allocations: 4.071 MB / 1.113 GB, free: 9.445 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.8324, allocations: 0 / 1.113 GB, free: 9.445 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.278e-06/0.8324, allocations: 0 / 1.113 GB, free: 9.445 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.201e-05/0.8325, allocations: 3.938 kB / 1.113 GB, free: 9.441 MB / 0.8731 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.006567/0.8391, allocations: 2.834 MB / 1.116 GB, free: 6.547 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.8391, allocations: 8.031 kB / 1.116 GB, free: 6.539 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002169/0.8394, allocations: 194.6 kB / 1.116 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007855/0.8401, allocations: 261 kB / 1.117 GB, free: 6.082 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005486/0.8456, allocations: 2.095 MB / 1.119 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.8458, allocations: 114.6 kB / 1.119 GB, free: 3.82 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003073/0.8461, allocations: 139.9 kB / 1.119 GB, free: 3.684 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003503/0.8496, allocations: 1.458 MB / 1.12 GB, free: 2.148 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.882e-05/0.8497, allocations: 7.938 kB / 1.12 GB, free: 2.141 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.8499, allocations: 56 kB / 1.12 GB, free: 2.086 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.977e-05/0.8499, allocations: 39.98 kB / 1.12 GB, free: 2.047 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002661/0.8526, allocations: 1.025 MB / 1.121 GB, free: 1.016 MB / 0.8731 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.0088/0.8614, allocations: 8.108 MB / 1.129 GB, free: 8.211 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.8628, allocations: 0.8414 MB / 1.13 GB, free: 7.34 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005338/0.8633, allocations: 381.4 kB / 1.13 GB, free: 6.969 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001772/0.8651, allocations: 2.807 MB / 1.133 GB, free: 3.535 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.8651, allocations: 43.22 kB / 1.133 GB, free: 3.48 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=85): time 2.625e-06/0.8651, allocations: 0 / 1.133 GB, free: 3.48 MB / 0.8887 GB Notification: Performance of matching and sorting (n=85): time 0.00197/0.8671, allocations: 1.128 MB / 1.134 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.8672, allocations: 72 kB / 1.134 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/0.869, allocations: 1.602 MB / 1.136 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 6.208e-05/0.869, allocations: 41.7 kB / 1.136 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.00061/0.8696, allocations: 0.9315 MB / 1.137 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002241/0.8699, allocations: 303.6 kB / 1.137 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002872/0.8702, allocations: 230.6 kB / 1.137 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.8703, allocations: 349.9 kB / 1.138 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005344/0.8708, allocations: 333.9 kB / 1.138 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007731/0.8716, allocations: 0.7032 MB / 1.139 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.873, allocations: 1.085 MB / 1.14 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.873, allocations: 4 kB / 1.14 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001934/0.875, allocations: 1.242 MB / 1.141 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.875, allocations: 16 kB / 1.141 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.875, allocations: 16 kB / 1.141 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.8751, allocations: 16 kB / 1.141 GB, free: 11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00074/0.8758, allocations: 267.5 kB / 1.141 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/0.8758, allocations: 27.92 kB / 1.141 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.8769, allocations: 174.6 kB / 1.142 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.877, allocations: 71.97 kB / 1.142 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008819/0.8779, allocations: 0.6236 MB / 1.142 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007673/0.8786, allocations: 0.6994 MB / 1.143 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001367/0.88, allocations: 1.089 MB / 1.144 GB, free: 7.723 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.122e-06/0.88, allocations: 4 kB / 1.144 GB, free: 7.719 MB / 0.9044 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.001876/0.8819, allocations: 1.241 MB / 1.145 GB, free: 6.469 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.8819, allocations: 8.875 kB / 1.145 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.492e-05/0.882, allocations: 19.98 kB / 1.145 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.882, allocations: 20 kB / 1.145 GB, free: 6.422 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007042/0.8827, allocations: 259.5 kB / 1.145 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.8827, allocations: 35.8 kB / 1.146 GB, free: 6.133 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009586/0.8837, allocations: 147.1 kB / 1.146 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.8838, allocations: 67.97 kB / 1.146 GB, free: 5.922 MB / 0.9044 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.0001965/0.884, allocations: 247.9 kB / 1.146 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002718/0.8843, allocations: 189.7 kB / 1.146 GB, free: 5.484 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.887, allocations: 1.751 MB / 1.148 GB, free: 3.723 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.911e-05/0.887, allocations: 23.92 kB / 1.148 GB, free: 3.699 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.887, allocations: 0 / 1.148 GB, free: 3.699 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00155/0.8886, allocations: 1.142 MB / 1.149 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/0.893, allocations: 3.478 MB / 1.152 GB, free: 14.88 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.13e-05/0.893, allocations: 8 kB / 1.152 GB, free: 14.88 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006388/0.8937, allocations: 204.3 kB / 1.153 GB, free: 14.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/0.8937, allocations: 12 kB / 1.153 GB, free: 14.66 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.016e-05/0.8938, allocations: 43.98 kB / 1.153 GB, free: 14.62 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.318e-06/0.8938, allocations: 11.98 kB / 1.153 GB, free: 14.61 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.8938, allocations: 15.88 kB / 1.153 GB, free: 14.59 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.8966, allocations: 2.226 MB / 1.155 GB, free: 12.27 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005419/0.8971, allocations: 442.1 kB / 1.155 GB, free: 11.81 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.8974, allocations: 28 kB / 1.155 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009009/0.8983, allocations: 95.86 kB / 1.155 GB, free: 11.69 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.8984, allocations: 120.7 kB / 1.155 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.221e-05/0.8985, allocations: 59.97 kB / 1.156 GB, free: 11.52 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001283/0.8998, allocations: 1.075 MB / 1.157 GB, free: 10.42 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8998, allocations: 0 / 1.157 GB, free: 10.42 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002263/0.9021, allocations: 1.127 MB / 1.158 GB, free: 9.289 MB / 0.92 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.004279/0.9064, allocations: 3.469 MB / 1.161 GB, free: 5.719 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003115/0.9095, allocations: 1.898 MB / 1.163 GB, free: 3.773 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.9095, allocations: 4 kB / 1.163 GB, free: 3.77 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.9106, allocations: 0.8254 MB / 1.164 GB, free: 2.926 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/0.914, allocations: 0.9713 MB / 1.165 GB, free: 1.98 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01958/0.9336, allocations: 14.49 MB / 1.179 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008767/0.9345, allocations: 1.436 MB / 1.18 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001607/0.9361, allocations: 0.5365 MB / 1.181 GB, free: 240 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009305/0.9371, allocations: 0.8508 MB / 1.182 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.9371, allocations: 0 / 1.182 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.56/2.497, allocations: 57.76 MB / 1.238 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/2.497, allocations: 251.3 kB / 1.238 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.743/7.24, allocations: 0 / 1.238 GB, free: 6.055 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe 2>&1)