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.001494/0.001494, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.058/2.058, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001203/0.001203, allocations: 88.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005351/0.0005351, allocations: 11.98 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3441, allocations: 47.56 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.491/8.835, allocations: 2.796 GB / 3.162 GB, free: 74.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/8.835, allocations: 78.86 kB / 3.162 GB, free: 74.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.881/11.72, allocations: 0.5507 GB / 3.713 GB, free: 38.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.685e-06/11.72, allocations: 0 / 3.713 GB, free: 38.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001738/11.72, allocations: 47.2 kB / 3.713 GB, free: 38.15 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.0142/11.73, allocations: 2.997 MB / 3.716 GB, free: 36.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/11.73, allocations: 11.81 kB / 3.716 GB, free: 36.69 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00113/11.73, allocations: 228.2 kB / 3.716 GB, free: 36.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00689/11.74, allocations: 0.6004 MB / 3.717 GB, free: 36.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005587/11.74, allocations: 1.435 MB / 3.718 GB, free: 36.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/11.75, allocations: 144.7 kB / 3.718 GB, free: 36.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006402/11.75, allocations: 144.9 kB / 3.718 GB, free: 36.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/11.76, allocations: 2.839 MB / 3.721 GB, free: 35.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.608e-05/11.76, allocations: 7.625 kB / 3.721 GB, free: 35.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000338/11.76, allocations: 69.58 kB / 3.721 GB, free: 35.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002322/11.76, allocations: 129.4 kB / 3.721 GB, free: 35.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/11.77, allocations: 2.655 MB / 3.724 GB, free: 35.7 MB / 442.7 MB 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.02238/11.79, allocations: 11.7 MB / 3.735 GB, free: 28.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007704/11.8, allocations: 1.748 MB / 3.737 GB, free: 28.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02634/11.82, allocations: 8.298 MB / 3.745 GB, free: 23.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/11.82, allocations: 48.84 kB / 3.745 GB, free: 23.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=114): time 3.456e-06/11.82, allocations: 0 / 3.745 GB, free: 23.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.03736/11.86, allocations: 7.473 MB / 3.752 GB, free: 22.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/11.86, allocations: 144.4 kB / 3.753 GB, free: 22.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002324/11.86, allocations: 1.06 MB / 3.754 GB, free: 22.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004195/11.86, allocations: 51.39 kB / 3.754 GB, free: 22.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005115/11.87, allocations: 0.6925 MB / 3.754 GB, free: 21.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006116/11.87, allocations: 458.9 kB / 3.755 GB, free: 21.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/11.87, allocations: 29.94 kB / 3.755 GB, free: 21.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/11.87, allocations: 375.8 kB / 3.755 GB, free: 21.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002976/11.87, allocations: 0.8856 MB / 3.756 GB, free: 21.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/11.87, allocations: 1.262 MB / 3.757 GB, free: 20.9 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.45/16.32, allocations: 379.4 MB / 4.128 GB, free: 30.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/16.32, allocations: 4 kB / 4.128 GB, free: 30.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01017/16.33, allocations: 2.608 MB / 4.13 GB, free: 28.72 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000972/16.33, allocations: 4.013 MB / 4.134 GB, free: 24.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.92e-05/16.33, allocations: 8 kB / 4.134 GB, free: 24.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00306/16.34, allocations: 0.5183 MB / 4.135 GB, free: 24.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/16.34, allocations: 374.5 kB / 4.135 GB, free: 23.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002988/16.34, allocations: 2.916 MB / 4.138 GB, free: 21.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/16.35, allocations: 206.7 kB / 4.138 GB, free: 20.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003905/16.35, allocations: 77.11 kB / 4.138 GB, free: 20.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/16.35, allocations: 5.875 kB / 4.138 GB, free: 20.8 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009087/16.36, allocations: 2.489 MB / 4.141 GB, free: 19.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-05/16.36, allocations: 8 kB / 4.141 GB, free: 19.08 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/16.36, allocations: 0.4894 MB / 4.141 GB, free: 18.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002914/16.36, allocations: 368.2 kB / 4.141 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/16.36, allocations: 2.913 MB / 4.144 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002418/16.37, allocations: 195.4 kB / 4.145 GB, free: 15.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002508/16.37, allocations: 78.92 kB / 4.145 GB, free: 15.45 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 () * Number of clocked 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.001554/16.37, allocations: 0.5862 MB / 4.145 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004894/16.37, allocations: 148.8 kB / 4.145 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/16.38, allocations: 5.574 MB / 4.151 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.456e-05/16.38, allocations: 68.16 kB / 4.151 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/16.38, allocations: 0 / 4.151 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01077/16.39, allocations: 5.097 MB / 4.156 GB, free: 7.688 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3722/16.77, allocations: 8.616 MB / 4.164 GB, free: 82.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/16.77, allocations: 6.969 kB / 4.164 GB, free: 82.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/16.77, allocations: 289.1 kB / 4.164 GB, free: 82.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/16.77, allocations: 0.5526 MB / 4.165 GB, free: 82.85 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/16.77, allocations: 41.14 kB / 4.165 GB, free: 82.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002663/16.77, allocations: 2.922 MB / 4.168 GB, free: 80.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/16.77, allocations: 3.906 kB / 4.168 GB, free: 80.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/16.79, allocations: 5.555 MB / 4.173 GB, free: 80.28 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/16.79, allocations: 0.5298 MB / 4.174 GB, free: 80.09 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/16.79, allocations: 39.92 kB / 4.174 GB, free: 80.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001961/16.79, allocations: 167.6 kB / 4.174 GB, free: 80.08 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/16.79, allocations: 129.4 kB / 4.174 GB, free: 80.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/16.79, allocations: 51.45 kB / 4.174 GB, free: 80.08 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001748/16.79, allocations: 0.9128 MB / 4.175 GB, free: 79.97 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.61e-07/16.79, allocations: 2.406 kB / 4.175 GB, free: 79.97 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009005/16.8, allocations: 2.184 MB / 4.177 GB, free: 79.97 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 () * Number of clocked 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.02498/16.83, allocations: 8.769 MB / 4.186 GB, free: 78.26 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01215/16.84, allocations: 3.843 MB / 4.19 GB, free: 78.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/16.84, allocations: 3.062 kB / 4.19 GB, free: 78.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004435/16.84, allocations: 1.815 MB / 4.191 GB, free: 78.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006136/16.85, allocations: 0.7577 MB / 4.192 GB, free: 78.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/16.87, allocations: 15.19 MB / 4.207 GB, free: 68.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/16.87, allocations: 1.789 MB / 4.209 GB, free: 67.29 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001819/16.87, allocations: 0.8756 MB / 4.21 GB, free: 67.28 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/16.87, allocations: 0 / 4.21 GB, free: 67.28 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.506/21.38, allocations: 96.16 MB / 4.303 GB, free: 43.21 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