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: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="BuildingSystems_BuildingSystems_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.0007533/0.0007535, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004555/0.004555, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.276/1.276, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001758/0.001758, allocations: 270.5 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9582/0.9582, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003901, allocations: 14.22 kB / 0.5988 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1472, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.4245/0.5718, allocations: 112.6 MB / 0.7951 GB, free: 7.609 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03053/0.6024, allocations: 26.39 MB / 0.8209 GB, free: 4.199 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004291/0.6067, allocations: 99.84 kB / 0.821 GB, free: 4.16 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.6095, allocations: 0.9209 MB / 0.8219 GB, free: 3.672 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008581/0.6181, allocations: 3.161 MB / 0.825 GB, free: 2.32 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005609/0.6237, allocations: 2.091 MB / 0.827 GB, free: 1.34 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.009259/0.633, allocations: 8.167 MB / 0.835 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003019/0.6361, allocations: 1.546 MB / 0.8365 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005225/0.6413, allocations: 2.258 MB / 0.8387 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00313/0.6445, allocations: 1.711 MB / 0.8404 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000609/0.6451, allocations: 92 kB / 0.8405 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005989/0.6511, allocations: 2.132 MB / 0.8426 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006696/0.6518, allocations: 412.2 kB / 0.843 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001875/0.6537, allocations: 1.16 MB / 0.8441 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006056/0.6598, allocations: 3.931 MB / 0.8479 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.6598, allocations: 3.938 kB / 0.8479 GB, free: 6 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6598, allocations: 0 / 0.8479 GB, free: 6 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.319e-05/0.6598, allocations: 0 / 0.8479 GB, free: 6 MB / 0.5606 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.004618/0.6645, allocations: 2.424 MB / 0.8503 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.6645, allocations: 12.8 kB / 0.8503 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002405/0.6648, allocations: 205.2 kB / 0.8505 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004618/0.6652, allocations: 250.8 kB / 0.8508 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.6689, allocations: 2.099 MB / 0.8528 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.669, allocations: 108 kB / 0.8529 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.6692, allocations: 143.1 kB / 0.853 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.6714, allocations: 1.463 MB / 0.8545 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.609e-05/0.6715, allocations: 7.938 kB / 0.8545 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.6716, allocations: 59.66 kB / 0.8545 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.405e-05/0.6716, allocations: 35.09 kB / 0.8546 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.6734, allocations: 1.033 MB / 0.8556 GB, free: 0.8359 MB / 0.5606 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.008335/0.6817, allocations: 8.117 MB / 0.8635 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.6832, allocations: 0.8466 MB / 0.8643 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006089/0.6838, allocations: 386.4 kB / 0.8647 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002079/0.6859, allocations: 2.802 MB / 0.8674 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.6859, allocations: 47.22 kB / 0.8675 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 2.765e-06/0.686, allocations: 0 / 0.8675 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.002221/0.6882, allocations: 1.148 MB / 0.8686 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.6882, allocations: 64 kB / 0.8687 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002102/0.6904, allocations: 1.606 MB / 0.8702 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.029e-05/0.6904, allocations: 45.7 kB / 0.8703 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007335/0.6912, allocations: 0.9263 MB / 0.8712 GB, free: 200 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002836/0.6915, allocations: 306.3 kB / 0.8715 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.6916, allocations: 93.67 kB / 0.8716 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.6918, allocations: 345.9 kB / 0.8719 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000599/0.6924, allocations: 330.4 kB / 0.8722 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008853/0.6933, allocations: 0.7142 MB / 0.8729 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.6948, allocations: 1.097 MB / 0.874 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.6948, allocations: 8 kB / 0.874 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00233/0.6971, allocations: 1.253 MB / 0.8752 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.000312/0.6975, allocations: 437.3 kB / 0.8756 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/0.6975, allocations: 19.94 kB / 0.8756 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.6975, allocations: 23.98 kB / 0.8757 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008285/0.6984, allocations: 267.5 kB / 0.8759 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.294e-05/0.6984, allocations: 19.94 kB / 0.8759 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.6999, allocations: 187.3 kB / 0.8761 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.7, allocations: 67.97 kB / 0.8762 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.7, allocations: 7.984 kB / 0.8762 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00172/0.7017, allocations: 1.059 MB / 0.8772 GB, free: 9.496 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-05/0.7018, allocations: 20.02 kB / 0.8772 GB, free: 9.477 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.7018, allocations: 20 kB / 0.8773 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007775/0.7026, allocations: 259.6 kB / 0.8775 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.076e-05/0.7027, allocations: 27.81 kB / 0.8775 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.704, allocations: 166.9 kB / 0.8777 GB, free: 9.012 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.7041, allocations: 67.97 kB / 0.8778 GB, free: 8.945 MB / 0.5919 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.0008496/0.705, allocations: 474 kB / 0.8782 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.7053, allocations: 193.7 kB / 0.8784 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002934/0.7082, allocations: 1.759 MB / 0.8801 GB, free: 6.523 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.118e-05/0.7083, allocations: 19.98 kB / 0.8801 GB, free: 6.504 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.7083, allocations: 0 / 0.8801 GB, free: 6.504 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001657/0.7099, allocations: 1.158 MB / 0.8813 GB, free: 5.312 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005579/0.7155, allocations: 3.478 MB / 0.8847 GB, free: 1.699 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.553e-05/0.7156, allocations: 11.98 kB / 0.8847 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007035/0.7163, allocations: 211.7 kB / 0.8849 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/0.7163, allocations: 8 kB / 0.8849 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.231e-05/0.7164, allocations: 43.97 kB / 0.8849 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.168e-05/0.7164, allocations: 12 kB / 0.8849 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.7164, allocations: 11.94 kB / 0.885 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.7196, allocations: 2.246 MB / 0.8871 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008271/0.7205, allocations: 474 kB / 0.8876 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.7207, allocations: 31.98 kB / 0.8876 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009608/0.7217, allocations: 103.8 kB / 0.8877 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.7218, allocations: 120.7 kB / 0.8878 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.722, allocations: 55.97 kB / 0.8879 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001546/0.7235, allocations: 1.079 MB / 0.8889 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7235, allocations: 0 / 0.8889 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00287/0.7264, allocations: 1.131 MB / 0.8901 GB, free: 12.04 MB / 0.6075 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.004837/0.7312, allocations: 3.482 MB / 0.8935 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002864/0.7341, allocations: 1.808 MB / 0.8952 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.7341, allocations: 4 kB / 0.8952 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.7353, allocations: 0.8271 MB / 0.896 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006236/0.7416, allocations: 0.9366 MB / 0.8969 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02644/0.768, allocations: 14.61 MB / 0.9112 GB, free: 5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.7694, allocations: 1.436 MB / 0.9126 GB, free: 3.531 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002229/0.7716, allocations: 0.5402 MB / 0.9131 GB, free: 2.996 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/0.7728, allocations: 0.8506 MB / 0.914 GB, free: 2.145 MB / 0.6231 GB Notification: Performance of SimCode: time 5.11e-07/0.7728, allocations: 3.938 kB / 0.914 GB, free: 2.141 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09299/0.8658, allocations: 56.87 MB / 0.9695 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/0.8661, allocations: 267.3 kB / 0.9698 GB, free: 9.727 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.328/4.194, allocations: 0 / 0.9698 GB, free: 9.727 MB / 0.6856 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PlugFlowPipe_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PlugFlowPipe.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe 2>&1)