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.00126/0.00126, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0009136/0.0009136, allocations: 92.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002874, allocations: 15.98 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2561, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.455/6.712, allocations: 2.796 GB / 3.163 GB, free: 82.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/6.712, allocations: 80.53 kB / 3.163 GB, free: 82.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.155/8.867, allocations: 0.5507 GB / 3.714 GB, free: 26.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.493e-06/8.867, allocations: 0 / 3.714 GB, free: 26.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002459/8.867, allocations: 46.2 kB / 3.714 GB, free: 26.14 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.01485/8.882, allocations: 2.989 MB / 3.717 GB, free: 23.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.629e-05/8.882, allocations: 8.031 kB / 3.717 GB, free: 23.42 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001596/8.884, allocations: 231.4 kB / 3.717 GB, free: 23.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005818/8.89, allocations: 0.6044 MB / 3.718 GB, free: 22.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005819/8.895, allocations: 1.441 MB / 3.719 GB, free: 21.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000313/8.896, allocations: 144.9 kB / 3.719 GB, free: 21.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009034/8.897, allocations: 142.3 kB / 3.72 GB, free: 21.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007624/8.904, allocations: 2.838 MB / 3.722 GB, free: 18.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.616e-05/8.904, allocations: 7.938 kB / 3.722 GB, free: 18.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003945/8.905, allocations: 70.2 kB / 3.722 GB, free: 18.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001623/8.905, allocations: 126.7 kB / 3.722 GB, free: 18.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006011/8.911, allocations: 2.653 MB / 3.725 GB, free: 15.72 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.01427/8.925, allocations: 11.7 MB / 3.737 GB, free: 3.219 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00406/8.929, allocations: 1.746 MB / 3.738 GB, free: 1.473 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01706/8.947, allocations: 8.31 MB / 3.746 GB, free: 8.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.233e-05/8.947, allocations: 43.56 kB / 3.746 GB, free: 8.125 MB / 458.7 MB Notification: Performance of pre-optimization done (n=114): time 3.597e-06/8.947, allocations: 4 kB / 3.746 GB, free: 8.121 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.02174/8.968, allocations: 7.453 MB / 3.754 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.592e-05/8.969, allocations: 145.8 kB / 3.754 GB, free: 440 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3675/9.336, allocations: 1.057 MB / 3.755 GB, free: 47.32 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005353/9.337, allocations: 53.86 kB / 3.755 GB, free: 47.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000621/9.337, allocations: 0.7096 MB / 3.756 GB, free: 47.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005379/9.338, allocations: 463.4 kB / 3.756 GB, free: 47.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.352e-05/9.338, allocations: 32.66 kB / 3.756 GB, free: 47.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/9.338, allocations: 365.6 kB / 3.756 GB, free: 46.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/9.34, allocations: 0.8889 MB / 3.757 GB, free: 46.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/9.342, allocations: 1.265 MB / 3.758 GB, free: 46.3 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 2.523/11.86, allocations: 379.5 MB / 4.129 GB, free: 78.48 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/11.86, allocations: 3.906 kB / 4.129 GB, free: 78.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005242/11.87, allocations: 2.692 MB / 4.132 GB, free: 78.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009985/11.87, allocations: 4.032 MB / 4.136 GB, free: 74.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/11.87, allocations: 11.44 kB / 4.136 GB, free: 74.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001677/11.87, allocations: 0.5131 MB / 4.136 GB, free: 74.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/11.87, allocations: 375.4 kB / 4.137 GB, free: 74.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002302/11.88, allocations: 2.912 MB / 4.139 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002467/11.88, allocations: 208.6 kB / 4.14 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/11.88, allocations: 74.84 kB / 4.14 GB, free: 72.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/11.88, allocations: 3.312 kB / 4.14 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005337/11.88, allocations: 2.489 MB / 4.142 GB, free: 72.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/11.89, allocations: 10.25 kB / 4.142 GB, free: 72.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/11.89, allocations: 0.5166 MB / 4.143 GB, free: 72.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/11.89, allocations: 370.9 kB / 4.143 GB, free: 72.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002111/11.89, allocations: 2.914 MB / 4.146 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/11.89, allocations: 199.1 kB / 4.146 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/11.89, allocations: 74.36 kB / 4.146 GB, free: 69.96 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.001267/11.89, allocations: 0.5894 MB / 4.147 GB, free: 69.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/11.89, allocations: 147.6 kB / 4.147 GB, free: 69.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006902/11.9, allocations: 5.578 MB / 4.152 GB, free: 69.39 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.391e-05/11.9, allocations: 64.16 kB / 4.152 GB, free: 69.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/11.9, allocations: 0 / 4.152 GB, free: 69.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005642/11.91, allocations: 5.103 MB / 4.157 GB, free: 68.63 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/11.92, allocations: 8.618 MB / 4.166 GB, free: 67.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/11.92, allocations: 4.562 kB / 4.166 GB, free: 67.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/11.92, allocations: 284.9 kB / 4.166 GB, free: 67.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001781/11.92, allocations: 0.5557 MB / 4.166 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/11.92, allocations: 44.48 kB / 4.167 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/11.92, allocations: 2.919 MB / 4.169 GB, free: 65.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/11.92, allocations: 2.688 kB / 4.169 GB, free: 65.55 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00743/11.93, allocations: 5.555 MB / 4.175 GB, free: 64.85 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/11.93, allocations: 0.5297 MB / 4.175 GB, free: 64.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/11.93, allocations: 38.72 kB / 4.175 GB, free: 64.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/11.93, allocations: 163 kB / 4.175 GB, free: 64.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/11.93, allocations: 135 kB / 4.176 GB, free: 64.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.451e-05/11.93, allocations: 51.67 kB / 4.176 GB, free: 64.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001194/11.94, allocations: 0.9147 MB / 4.177 GB, free: 64.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/11.94, allocations: 0 / 4.177 GB, free: 64.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008244/11.94, allocations: 2.176 MB / 4.179 GB, free: 64.5 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.01754/11.96, allocations: 8.78 MB / 4.187 GB, free: 62.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006981/11.97, allocations: 3.846 MB / 4.191 GB, free: 62.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/11.97, allocations: 3.656 kB / 4.191 GB, free: 62.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002677/11.97, allocations: 1.83 MB / 4.193 GB, free: 62.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/11.97, allocations: 0.7503 MB / 4.194 GB, free: 62.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/11.99, allocations: 15.13 MB / 4.208 GB, free: 52.08 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001316/11.99, allocations: 1.812 MB / 4.21 GB, free: 51.31 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003553/12, allocations: 1.953 MB / 4.212 GB, free: 51.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/12, allocations: 0.8657 MB / 4.213 GB, free: 51.23 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/12, allocations: 0 / 4.213 GB, free: 51.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4296/12.43, allocations: 89.4 MB / 4.3 GB, free: 74.37 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/12.43, allocations: 242.3 kB / 4.3 GB, free: 74.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.06/17.49, allocations: 4.938 kB / 4.3 GB, free: 74.13 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