Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0021/0.0021, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001122, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.041e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09651, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.346/8.443, allocations: 2.796 GB / 3.157 GB, free: 85.74 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/8.443, allocations: 75.56 kB / 3.157 GB, free: 85.74 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.843/11.29, allocations: 0.5493 GB / 3.706 GB, free: 37.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.896e-06/11.29, allocations: 0 / 3.706 GB, free: 37.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001811/11.29, allocations: 53.59 kB / 3.706 GB, free: 37.03 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01298/11.3, allocations: 2.803 MB / 3.709 GB, free: 35.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/11.3, allocations: 8.375 kB / 3.709 GB, free: 35.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000805/11.3, allocations: 230.6 kB / 3.709 GB, free: 35.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006675/11.31, allocations: 0.5994 MB / 3.71 GB, free: 35.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005586/11.31, allocations: 1.429 MB / 3.711 GB, free: 35.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/11.31, allocations: 147.3 kB / 3.711 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005529/11.31, allocations: 153.6 kB / 3.711 GB, free: 35.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00895/11.32, allocations: 2.789 MB / 3.714 GB, free: 34.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.957e-05/11.32, allocations: 7.781 kB / 3.714 GB, free: 34.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003301/11.32, allocations: 70.91 kB / 3.714 GB, free: 34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002367/11.32, allocations: 124.8 kB / 3.714 GB, free: 33.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008682/11.33, allocations: 2.497 MB / 3.717 GB, free: 33.22 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02174/11.35, allocations: 11.71 MB / 3.728 GB, free: 24.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005846/11.36, allocations: 1.617 MB / 3.73 GB, free: 23.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/11.36, allocations: 0.7615 MB / 3.73 GB, free: 23.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0259/11.39, allocations: 8.316 MB / 3.739 GB, free: 18.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.543e-05/11.39, allocations: 49.38 kB / 3.739 GB, free: 18.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=114): time 3.306e-06/11.39, allocations: 0 / 3.739 GB, free: 18.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.02613/11.41, allocations: 6.306 MB / 3.745 GB, free: 15.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/11.41, allocations: 144.6 kB / 3.745 GB, free: 15.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/11.42, allocations: 1.058 MB / 3.746 GB, free: 15.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002381/11.42, allocations: 49.7 kB / 3.746 GB, free: 15.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004783/11.42, allocations: 0.6933 MB / 3.747 GB, free: 14.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000442/11.42, allocations: 455.5 kB / 3.747 GB, free: 14.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/11.42, allocations: 36 kB / 3.747 GB, free: 14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/11.42, allocations: 371.3 kB / 3.747 GB, free: 13.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/11.42, allocations: 0.7634 MB / 3.748 GB, free: 12.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/11.42, allocations: 1.152 MB / 3.749 GB, free: 11.78 MB / 442.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 4.727/16.15, allocations: 379.1 MB / 4.12 GB, free: 82.41 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/16.15, allocations: 3.281 kB / 4.12 GB, free: 82.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007841/16.16, allocations: 2.378 MB / 4.122 GB, free: 82.33 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009198/16.16, allocations: 4.005 MB / 4.126 GB, free: 78.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.545e-05/16.16, allocations: 10.69 kB / 4.126 GB, free: 78.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002956/16.16, allocations: 0.5028 MB / 4.126 GB, free: 78.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003131/16.16, allocations: 371.6 kB / 4.127 GB, free: 78.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003073/16.17, allocations: 2.913 MB / 4.129 GB, free: 76.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003224/16.17, allocations: 205.3 kB / 4.13 GB, free: 76.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003699/16.17, allocations: 74.83 kB / 4.13 GB, free: 76.06 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/16.17, allocations: 2.719 kB / 4.13 GB, free: 76.06 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007264/16.18, allocations: 2.251 MB / 4.132 GB, free: 75.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.806e-05/16.18, allocations: 10.19 kB / 4.132 GB, free: 75.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002451/16.18, allocations: 478.5 kB / 4.132 GB, free: 75.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0032/16.18, allocations: 374 kB / 4.133 GB, free: 75.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/16.19, allocations: 2.904 MB / 4.136 GB, free: 73.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/16.19, allocations: 199.8 kB / 4.136 GB, free: 73.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/16.19, allocations: 74.16 kB / 4.136 GB, free: 73.89 MB / 490.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: annulus_pipe.mediums[1].p = 1000000.0 circular_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006433/16.19, allocations: 203.9 kB / 4.136 GB, free: 73.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005312/16.19, allocations: 149.8 kB / 4.136 GB, free: 73.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/16.2, allocations: 5.462 MB / 4.142 GB, free: 73.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-05/16.2, allocations: 56.27 kB / 4.142 GB, free: 73.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/16.2, allocations: 0 / 4.142 GB, free: 73.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008472/16.21, allocations: 4.991 MB / 4.146 GB, free: 72.64 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01883/16.23, allocations: 8.51 MB / 4.155 GB, free: 71.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/16.23, allocations: 3.656 kB / 4.155 GB, free: 71.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002339/16.23, allocations: 290.3 kB / 4.155 GB, free: 71.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003004/16.24, allocations: 0.5391 MB / 4.156 GB, free: 71.74 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003506/16.24, allocations: 39.66 kB / 4.156 GB, free: 71.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00269/16.24, allocations: 2.913 MB / 4.158 GB, free: 69.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/16.24, allocations: 9.516 kB / 4.158 GB, free: 69.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/16.25, allocations: 5.2 MB / 4.164 GB, free: 69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/16.25, allocations: 0.5375 MB / 4.164 GB, free: 68.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005602/16.25, allocations: 38.2 kB / 4.164 GB, free: 68.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002543/16.25, allocations: 174 kB / 4.164 GB, free: 68.78 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004577/16.25, allocations: 128.7 kB / 4.164 GB, free: 68.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/16.25, allocations: 46.83 kB / 4.164 GB, free: 68.77 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001928/16.26, allocations: 0.8954 MB / 4.165 GB, free: 68.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.52e-07/16.26, allocations: 3.906 kB / 4.165 GB, free: 68.66 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01078/16.27, allocations: 2.181 MB / 4.167 GB, free: 68.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02396/16.29, allocations: 8.438 MB / 4.176 GB, free: 66.87 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009569/16.3, allocations: 3.521 MB / 4.179 GB, free: 66.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/16.3, allocations: 0 / 4.179 GB, free: 66.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/16.31, allocations: 1.712 MB / 4.181 GB, free: 66.81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006828/16.31, allocations: 0.7586 MB / 4.182 GB, free: 66.79 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/16.33, allocations: 5.563 MB / 4.187 GB, free: 65.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/16.33, allocations: 1.789 MB / 4.189 GB, free: 64.95 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001898/16.33, allocations: 0.8771 MB / 4.19 GB, free: 64.95 MB / 490.7 MB Notification: Performance of SimCode: time 1.563e-06/16.33, allocations: 0 / 4.19 GB, free: 64.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.619/20.95, allocations: 97.9 MB / 4.285 GB, free: 22.78 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_NonCircularPipes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_NonCircularPipes.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat