Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_3_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.001741/0.001741, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 82.23 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.303e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1396, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.109/7.248, allocations: 2.796 GB / 3.15 GB, free: 75.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/7.248, allocations: 73.34 kB / 3.15 GB, free: 75.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.052/9.301, allocations: 0.544 GB / 3.695 GB, free: 37.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.603e-06/9.301, allocations: 3.812 kB / 3.695 GB, free: 37.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001179/9.301, allocations: 45.27 kB / 3.695 GB, free: 37.66 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.0107/9.312, allocations: 2.794 MB / 3.697 GB, free: 36.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/9.312, allocations: 13.91 kB / 3.697 GB, free: 36.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004523/9.316, allocations: 0.6031 MB / 3.698 GB, free: 36.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003378/9.32, allocations: 1.43 MB / 3.699 GB, free: 35.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/9.32, allocations: 80.42 kB / 3.699 GB, free: 35.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/9.32, allocations: 83.75 kB / 3.699 GB, free: 35.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002927/9.323, allocations: 1.972 MB / 3.701 GB, free: 35.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/9.326, allocations: 2.173 MB / 3.703 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.562e-05/9.326, allocations: 10.94 kB / 3.703 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/9.326, allocations: 10.86 kB / 3.703 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/9.326, allocations: 128 kB / 3.704 GB, free: 35.4 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.1462/9.472, allocations: 82.91 MB / 3.785 GB, free: 15.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/9.474, allocations: 1.109 MB / 3.786 GB, free: 15.21 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008064/9.475, allocations: 0.7021 MB / 3.786 GB, free: 15.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01773/9.493, allocations: 8.317 MB / 3.794 GB, free: 25.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.489e-05/9.493, allocations: 45.5 kB / 3.795 GB, free: 25.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.938e-06/9.493, allocations: 0 / 3.795 GB, free: 25.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=126): time 0.01279/9.506, allocations: 5.04 MB / 3.799 GB, free: 21.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.759e-05/9.506, allocations: 144 kB / 3.8 GB, free: 21.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/9.507, allocations: 0.7879 MB / 3.8 GB, free: 21.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/9.507, allocations: 29.7 kB / 3.8 GB, free: 21.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004186/9.508, allocations: 0.7433 MB / 3.801 GB, free: 20.76 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003036/9.508, allocations: 421.9 kB / 3.802 GB, free: 20.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.927e-05/9.508, allocations: 0 / 3.802 GB, free: 20.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/9.508, allocations: 372.7 kB / 3.802 GB, free: 20.11 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009146/9.509, allocations: 0.7427 MB / 3.803 GB, free: 19.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/9.51, allocations: 1.114 MB / 3.804 GB, free: 18.88 MB / 490.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.01753/9.528, allocations: 5.644 MB / 3.809 GB, free: 15.63 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/9.528, allocations: 0 / 3.809 GB, free: 15.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01238/9.54, allocations: 4.214 MB / 3.813 GB, free: 13.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001639/9.542, allocations: 4.017 MB / 3.817 GB, free: 8.926 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/9.542, allocations: 8 kB / 3.817 GB, free: 8.918 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/9.543, allocations: 492.1 kB / 3.818 GB, free: 8.637 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/9.545, allocations: 379.9 kB / 3.818 GB, free: 8.359 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/9.547, allocations: 2.96 MB / 3.821 GB, free: 5.801 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/9.549, allocations: 187.7 kB / 3.821 GB, free: 5.664 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/9.549, allocations: 71.2 kB / 3.821 GB, free: 5.613 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/9.549, allocations: 4 kB / 3.821 GB, free: 5.609 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01251/9.562, allocations: 3.962 MB / 3.825 GB, free: 3.352 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/9.562, allocations: 14.38 kB / 3.825 GB, free: 3.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/9.563, allocations: 492.3 kB / 3.826 GB, free: 3.062 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/9.565, allocations: 368.7 kB / 3.826 GB, free: 2.789 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/9.567, allocations: 2.952 MB / 3.829 GB, free: 236 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/9.569, allocations: 183.3 kB / 3.829 GB, free: 100 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/9.569, allocations: 71.31 kB / 3.829 GB, free: 48 kB / 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.circular_pipe.mediums[1].u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 11 (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,boundary.medium.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.3428/9.912, allocations: 146.9 kB / 3.829 GB, free: 83.42 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004853/9.917, allocations: 1.87 MB / 3.831 GB, free: 83.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002876/9.917, allocations: 124.7 kB / 3.831 GB, free: 83.35 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007428/9.924, allocations: 4.782 MB / 3.836 GB, free: 83.03 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.245e-05/9.925, allocations: 57.22 kB / 3.836 GB, free: 83.03 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/9.925, allocations: 4.469 kB / 3.836 GB, free: 83.03 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005013/9.93, allocations: 4.407 MB / 3.84 GB, free: 82.31 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/9.941, allocations: 7.527 MB / 3.848 GB, free: 81.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/9.941, allocations: 2.75 kB / 3.848 GB, free: 81.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/9.942, allocations: 267.3 kB / 3.848 GB, free: 81.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001676/9.944, allocations: 0.5246 MB / 3.848 GB, free: 81.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/9.944, allocations: 23.55 kB / 3.848 GB, free: 81.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/9.946, allocations: 3.034 MB / 3.851 GB, free: 79.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/9.946, allocations: 2 kB / 3.851 GB, free: 79.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006138/9.952, allocations: 4.832 MB / 3.856 GB, free: 78.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/9.954, allocations: 0.4989 MB / 3.856 GB, free: 78.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/9.954, allocations: 12.75 kB / 3.856 GB, free: 78.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/9.955, allocations: 144.8 kB / 3.857 GB, free: 78.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/9.955, allocations: 122.7 kB / 3.857 GB, free: 78.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.673e-05/9.955, allocations: 51.47 kB / 3.857 GB, free: 78.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000961/9.956, allocations: 0.6821 MB / 3.857 GB, free: 78.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/9.956, allocations: 0 / 3.857 GB, free: 78.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00845/9.965, allocations: 2.073 MB / 3.859 GB, free: 78.48 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: 30 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,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 (122): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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.01771/9.982, allocations: 8.167 MB / 3.867 GB, free: 76.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007166/9.99, allocations: 3.354 MB / 3.871 GB, free: 76.72 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/9.99, allocations: 0 / 3.871 GB, free: 76.72 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/9.992, allocations: 1.6 MB / 3.872 GB, free: 76.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/9.995, allocations: 0.5738 MB / 3.873 GB, free: 76.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/10.01, allocations: 5.162 MB / 3.878 GB, free: 75.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/10.01, allocations: 1.779 MB / 3.88 GB, free: 74.97 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003548/10.01, allocations: 2.097 MB / 3.882 GB, free: 74.94 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009943/10.01, allocations: 0.8099 MB / 3.882 GB, free: 74.93 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/10.01, allocations: 0 / 3.882 GB, free: 74.93 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.127/10.14, allocations: 79.16 MB / 3.96 GB, free: 61.52 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/10.14, allocations: 154.5 kB / 3.96 GB, free: 61.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.919/15.06, allocations: 2.953 kB / 3.96 GB, free: 61.32 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_NonCircularPipes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_NonCircularPipes.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat