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.001318/0.001318, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.299/1.299, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.302/2.302, allocations: 390.3 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 0.8126 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5802/0.5815, allocations: 140.4 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.0994/0.681, allocations: 115.2 MB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.03448/0.7155, allocations: 26.54 MB / 1.088 GB, free: 3.629 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003907/0.7194, allocations: 115.4 kB / 1.088 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002826/0.7223, allocations: 1.149 MB / 1.089 GB, free: 2.359 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008139/0.7304, allocations: 3.418 MB / 1.093 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005487/0.7359, allocations: 2.347 MB / 1.095 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.007413/0.7434, allocations: 6.183 MB / 1.101 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003475/0.7468, allocations: 1.925 MB / 1.103 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005755/0.7526, allocations: 2.636 MB / 1.105 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.7554, allocations: 1.774 MB / 1.107 GB, free: 0 / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005867/0.756, allocations: 224 kB / 1.107 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005317/0.7613, allocations: 2.34 MB / 1.11 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.00083/0.7622, allocations: 0.5409 MB / 1.11 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002317/0.7645, allocations: 1.283 MB / 1.111 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.007015/0.7715, allocations: 4.063 MB / 1.115 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.7715, allocations: 0 / 1.115 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7715, allocations: 0 / 1.115 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001042/0.7717, allocations: 4 kB / 1.115 GB, free: 7.527 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.005811/0.7775, allocations: 2.826 MB / 1.118 GB, free: 4.641 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.7775, allocations: 20.02 kB / 1.118 GB, free: 4.621 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002087/0.7777, allocations: 194.6 kB / 1.118 GB, free: 4.422 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006177/0.7784, allocations: 257 kB / 1.119 GB, free: 4.168 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003626/0.782, allocations: 2.056 MB / 1.121 GB, free: 2.059 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.408e-05/0.7821, allocations: 102.7 kB / 1.121 GB, free: 1.957 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.7823, allocations: 147.8 kB / 1.121 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.7845, allocations: 1.45 MB / 1.122 GB, free: 292 kB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.7846, allocations: 11.94 kB / 1.122 GB, free: 280 kB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.7847, allocations: 52 kB / 1.122 GB, free: 228 kB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-05/0.7848, allocations: 43.98 kB / 1.122 GB, free: 184 kB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002026/0.7868, allocations: 1.021 MB / 1.123 GB, free: 15.15 MB / 0.8887 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.009635/0.7964, allocations: 8.175 MB / 1.131 GB, free: 6.281 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.798, allocations: 0.8375 MB / 1.132 GB, free: 5.414 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005944/0.7986, allocations: 380.4 kB / 1.133 GB, free: 5.043 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001978/0.8006, allocations: 2.803 MB / 1.135 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.8006, allocations: 47.22 kB / 1.135 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=85): time 2.675e-06/0.8006, allocations: 0 / 1.135 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of matching and sorting (n=85): time 0.00224/0.8029, allocations: 1.124 MB / 1.136 GB, free: 432 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.8029, allocations: 68 kB / 1.137 GB, free: 352 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002099/0.805, allocations: 1.618 MB / 1.138 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 7.461e-05/0.8051, allocations: 45.7 kB / 1.138 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006555/0.8058, allocations: 0.9353 MB / 1.139 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.806, allocations: 303.6 kB / 1.139 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/0.8064, allocations: 234.6 kB / 1.14 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.8065, allocations: 345.9 kB / 1.14 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000579/0.8071, allocations: 325.9 kB / 1.14 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008419/0.8079, allocations: 0.711 MB / 1.141 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.8095, allocations: 1.081 MB / 1.142 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.8095, allocations: 7.938 kB / 1.142 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002526/0.812, allocations: 1.249 MB / 1.143 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.8121, allocations: 8 kB / 1.143 GB, free: 9.094 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/0.8121, allocations: 20.8 kB / 1.143 GB, free: 9.074 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.376e-05/0.8122, allocations: 20 kB / 1.143 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008315/0.813, allocations: 271.5 kB / 1.144 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.068e-05/0.813, allocations: 19.94 kB / 1.144 GB, free: 8.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.8145, allocations: 134.6 kB / 1.144 GB, free: 8.637 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.8146, allocations: 63.98 kB / 1.144 GB, free: 8.574 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001176/0.8158, allocations: 0.6275 MB / 1.144 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008573/0.8166, allocations: 0.6994 MB / 1.145 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001608/0.8183, allocations: 1.085 MB / 1.146 GB, free: 5.828 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.488e-06/0.8183, allocations: 4 kB / 1.146 GB, free: 5.824 MB / 0.9044 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002312/0.8206, allocations: 1.246 MB / 1.147 GB, free: 4.574 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.8206, allocations: 12.03 kB / 1.147 GB, free: 4.562 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/0.8207, allocations: 16 kB / 1.147 GB, free: 4.547 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.8207, allocations: 20 kB / 1.147 GB, free: 4.527 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007765/0.8215, allocations: 259.5 kB / 1.148 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.965e-05/0.8215, allocations: 27.86 kB / 1.148 GB, free: 4.246 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.8227, allocations: 107.1 kB / 1.148 GB, free: 4.141 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.8228, allocations: 63.97 kB / 1.148 GB, free: 4.078 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.0002814/0.8231, allocations: 252.4 kB / 1.148 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004589/0.8236, allocations: 189.7 kB / 1.148 GB, free: 3.637 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003253/0.8268, allocations: 1.736 MB / 1.15 GB, free: 1.891 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.342e-05/0.8269, allocations: 31.91 kB / 1.15 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.8269, allocations: 0 / 1.15 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001799/0.8287, allocations: 1.146 MB / 1.151 GB, free: 0.6797 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005905/0.8346, allocations: 3.49 MB / 1.154 GB, free: 13.03 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.769e-05/0.8347, allocations: 8 kB / 1.154 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007019/0.8354, allocations: 199.7 kB / 1.155 GB, free: 12.82 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-05/0.8354, allocations: 8 kB / 1.155 GB, free: 12.82 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.128e-05/0.8355, allocations: 48.41 kB / 1.155 GB, free: 12.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.408e-05/0.8355, allocations: 19.98 kB / 1.155 GB, free: 12.75 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.8355, allocations: 15.88 kB / 1.155 GB, free: 12.73 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003193/0.8387, allocations: 2.226 MB / 1.157 GB, free: 10.41 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007819/0.8395, allocations: 434.1 kB / 1.157 GB, free: 9.961 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003599/0.8399, allocations: 35.98 kB / 1.157 GB, free: 9.926 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009798/0.8409, allocations: 35.98 kB / 1.157 GB, free: 9.891 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.8411, allocations: 128.6 kB / 1.158 GB, free: 9.766 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.8412, allocations: 55.97 kB / 1.158 GB, free: 9.711 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001686/0.8429, allocations: 1.099 MB / 1.159 GB, free: 8.59 MB / 0.92 GB Notification: Performance of sort global known variables: time 2e-07/0.8429, allocations: 0 / 1.159 GB, free: 8.59 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00311/0.846, allocations: 1.131 MB / 1.16 GB, free: 7.457 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.005051/0.8511, allocations: 3.467 MB / 1.163 GB, free: 3.891 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004329/0.8554, allocations: 1.897 MB / 1.165 GB, free: 1.945 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.8554, allocations: 4 kB / 1.165 GB, free: 1.941 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.8568, allocations: 0.8276 MB / 1.166 GB, free: 1.094 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005141/0.8619, allocations: 0.9714 MB / 1.167 GB, free: 152 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.8814, allocations: 13.82 MB / 1.18 GB, free: 1.078 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.8826, allocations: 1.44 MB / 1.182 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.002037/0.8846, allocations: 0.5298 MB / 1.182 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/0.8857, allocations: 0.8468 MB / 1.183 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of SimCode: time 7.41e-07/0.8857, allocations: 3.938 kB / 1.183 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0965/0.9822, allocations: 58.42 MB / 1.24 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.081/10.06, allocations: 18.33 kB / 1.24 GB, free: 4.422 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)