Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000944/0.0009441, allocations: 86.08 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002638, allocations: 7.938 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2595, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.516/6.775, allocations: 2.801 GB / 3.193 GB, free: 109.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003141/6.776, allocations: 81.73 kB / 3.193 GB, free: 109.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454/9.229, allocations: 0.5569 GB / 3.75 GB, free: 34.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.905e-06/9.229, allocations: 1.469 kB / 3.75 GB, free: 34.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002601/9.23, allocations: 46.72 kB / 3.75 GB, free: 34.25 MB / 458.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.0146/9.244, allocations: 2.989 MB / 3.753 GB, free: 32.75 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.397e-05/9.244, allocations: 11.44 kB / 3.753 GB, free: 32.75 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001398/9.246, allocations: 231.4 kB / 3.753 GB, free: 32.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005791/9.252, allocations: 0.5954 MB / 3.754 GB, free: 32.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005308/9.257, allocations: 1.452 MB / 3.755 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/9.257, allocations: 142.5 kB / 3.755 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006462/9.258, allocations: 150.9 kB / 3.756 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00804/9.266, allocations: 2.832 MB / 3.758 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.93e-05/9.266, allocations: 11.72 kB / 3.758 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004164/9.266, allocations: 71.8 kB / 3.758 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/9.267, allocations: 122.7 kB / 3.759 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006641/9.273, allocations: 2.655 MB / 3.761 GB, free: 31.47 MB / 458.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.01632/9.29, allocations: 11.71 MB / 3.773 GB, free: 22.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00457/9.294, allocations: 1.746 MB / 3.774 GB, free: 22.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01575/9.31, allocations: 8.302 MB / 3.782 GB, free: 16.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/9.31, allocations: 47.06 kB / 3.782 GB, free: 16.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=114): time 4.037e-06/9.31, allocations: 0 / 3.782 GB, free: 16.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.02332/9.334, allocations: 7.461 MB / 3.79 GB, free: 13.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/9.334, allocations: 141.8 kB / 3.79 GB, free: 13.77 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002426/9.336, allocations: 1.072 MB / 3.791 GB, free: 12.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/9.336, allocations: 49.7 kB / 3.791 GB, free: 12.79 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006597/9.337, allocations: 0.7102 MB / 3.792 GB, free: 12.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005416/9.338, allocations: 459 kB / 3.792 GB, free: 11.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/9.338, allocations: 32 kB / 3.792 GB, free: 11.71 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/9.338, allocations: 369.9 kB / 3.792 GB, free: 11.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/9.34, allocations: 0.8882 MB / 3.793 GB, free: 10.63 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002062/9.342, allocations: 1.267 MB / 3.795 GB, free: 9.391 MB / 458.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 0.02728/9.369, allocations: 6.518 MB / 3.801 GB, free: 4.477 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/9.369, allocations: 4 kB / 3.801 GB, free: 4.473 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00647/9.376, allocations: 2.694 MB / 3.804 GB, free: 2.152 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001698/9.377, allocations: 4.026 MB / 3.807 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/9.377, allocations: 8 kB / 3.807 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/9.379, allocations: 0.5209 MB / 3.808 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/9.381, allocations: 382.2 kB / 3.808 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/9.384, allocations: 2.911 MB / 3.811 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/9.386, allocations: 204 kB / 3.811 GB, free: 10.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00025/9.386, allocations: 71.7 kB / 3.811 GB, free: 10.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/9.386, allocations: 8 kB / 3.811 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005667/9.392, allocations: 2.482 MB / 3.814 GB, free: 7.926 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/9.392, allocations: 12.16 kB / 3.814 GB, free: 7.914 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/9.394, allocations: 0.5154 MB / 3.814 GB, free: 7.508 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/9.395, allocations: 372 kB / 3.815 GB, free: 7.199 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/9.398, allocations: 2.919 MB / 3.818 GB, free: 4.355 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/9.4, allocations: 202.4 kB / 3.818 GB, free: 4.199 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001991/9.4, allocations: 70.62 kB / 3.818 GB, free: 4.137 MB / 474.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.001502/9.402, allocations: 0.5891 MB / 3.818 GB, free: 3.598 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005599/9.402, allocations: 146.3 kB / 3.819 GB, free: 3.453 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4404/9.843, allocations: 5.732 MB / 3.824 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/9.843, allocations: 62.44 kB / 3.824 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/9.843, allocations: 1.75 kB / 3.824 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006651/9.85, allocations: 5.105 MB / 3.829 GB, free: 46.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/9.864, allocations: 8.622 MB / 3.838 GB, free: 46.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/9.864, allocations: 7.797 kB / 3.838 GB, free: 46.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/9.866, allocations: 293.5 kB / 3.838 GB, free: 46.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002227/9.868, allocations: 0.5522 MB / 3.838 GB, free: 46.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/9.868, allocations: 41.53 kB / 3.838 GB, free: 46.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/9.87, allocations: 2.908 MB / 3.841 GB, free: 44.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/9.87, allocations: 5.344 kB / 3.841 GB, free: 44.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008246/9.878, allocations: 5.553 MB / 3.847 GB, free: 43.49 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/9.88, allocations: 0.5374 MB / 3.847 GB, free: 43.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/9.88, allocations: 35.88 kB / 3.847 GB, free: 43.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/9.882, allocations: 168.7 kB / 3.847 GB, free: 43.33 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00029/9.883, allocations: 131.7 kB / 3.848 GB, free: 43.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/9.883, allocations: 47.92 kB / 3.848 GB, free: 43.33 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001813/9.884, allocations: 0.9143 MB / 3.849 GB, free: 43.22 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/9.884, allocations: 0 / 3.849 GB, free: 43.22 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01093/9.895, allocations: 2.184 MB / 3.851 GB, free: 43.22 MB / 474.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.02407/9.92, allocations: 8.786 MB / 3.859 GB, free: 41.49 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009711/9.929, allocations: 3.847 MB / 3.863 GB, free: 41.44 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/9.929, allocations: 0 / 3.863 GB, free: 41.44 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003393/9.933, allocations: 1.837 MB / 3.865 GB, free: 41.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004647/9.937, allocations: 0.7482 MB / 3.866 GB, free: 41.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02195/9.959, allocations: 15.14 MB / 3.88 GB, free: 31.28 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002254/9.962, allocations: 1.806 MB / 3.882 GB, free: 30.54 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004403/9.966, allocations: 1.956 MB / 3.884 GB, free: 30.52 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/9.968, allocations: 0.8651 MB / 3.885 GB, free: 30.52 MB / 474.7 MB Notification: Performance of SimCode: time 1.803e-06/9.968, allocations: 0 / 3.885 GB, free: 30.52 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1804/10.15, allocations: 89.46 MB / 3.972 GB, free: 6.602 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/10.15, allocations: 231 kB / 3.972 GB, free: 6.367 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.62/15.77, allocations: 0 / 3.972 GB, free: 6.367 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_NonCircularPipes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_NonCircularPipes.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat