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.001469/0.001469, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.5 MB / 230.3 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008259/0.0008256, allocations: 90.03 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.014e-05/2.003e-05, allocations: 4 kB / 337.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1216, allocations: 50.42 MB / 387.5 MB, free: 7.508 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.887/8.008, allocations: 2.8 GB / 3.179 GB, free: 38.13 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003873/8.009, allocations: 76.2 kB / 3.179 GB, free: 38.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.791/10.8, allocations: 0.5503 GB / 3.729 GB, free: 33.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.903e-06/10.8, allocations: 0 / 3.729 GB, free: 33.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001535/10.8, allocations: 49.98 kB / 3.729 GB, free: 33.89 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.01459/10.81, allocations: 2.801 MB / 3.732 GB, free: 32.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/10.81, allocations: 13.69 kB / 3.732 GB, free: 32.88 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005823/10.82, allocations: 0.6006 MB / 3.732 GB, free: 32.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005359/10.83, allocations: 1.432 MB / 3.734 GB, free: 32.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/10.83, allocations: 85.2 kB / 3.734 GB, free: 32.45 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000599/10.83, allocations: 86.5 kB / 3.734 GB, free: 32.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004671/10.83, allocations: 1.965 MB / 3.736 GB, free: 32.44 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004932/10.84, allocations: 2.178 MB / 3.738 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.624e-05/10.84, allocations: 7.281 kB / 3.738 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001873/10.84, allocations: 5.469 kB / 3.738 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002899/10.84, allocations: 123.9 kB / 3.738 GB, free: 31.99 MB / 458.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.2049/11.04, allocations: 82.94 MB / 3.819 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/11.04, allocations: 1.103 MB / 3.82 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009135/11.04, allocations: 0.7001 MB / 3.821 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01837/11.06, allocations: 8.324 MB / 3.829 GB, free: 23.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.382e-05/11.06, allocations: 53.84 kB / 3.829 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=108): time 3.396e-06/11.06, allocations: 0 / 3.829 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=126): time 0.01448/11.08, allocations: 5.038 MB / 3.834 GB, free: 22.36 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/11.08, allocations: 141.3 kB / 3.834 GB, free: 22.21 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/11.08, allocations: 0.7943 MB / 3.835 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001187/11.08, allocations: 25.7 kB / 3.835 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004873/11.08, allocations: 0.7405 MB / 3.836 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000332/11.08, allocations: 418.3 kB / 3.836 GB, free: 21.37 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/11.08, allocations: 3.391 kB / 3.836 GB, free: 21.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001792/11.08, allocations: 373.2 kB / 3.836 GB, free: 21.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009749/11.08, allocations: 0.7426 MB / 3.837 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/11.08, allocations: 1.109 MB / 3.838 GB, free: 20.65 MB / 0.4948 GB 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.0108/11.09, allocations: 4.158 MB / 3.842 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/11.09, allocations: 3 kB / 3.842 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.006172/11.1, allocations: 2.712 MB / 3.845 GB, free: 20.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002059/11.1, allocations: 4.004 MB / 3.849 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/11.1, allocations: 11.44 kB / 3.849 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001339/11.1, allocations: 497.8 kB / 3.849 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/11.1, allocations: 374.2 kB / 3.85 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/11.11, allocations: 2.957 MB / 3.853 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/11.11, allocations: 192.8 kB / 3.853 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/11.11, allocations: 77.06 kB / 3.853 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/11.11, allocations: 5.125 kB / 3.853 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005678/11.12, allocations: 2.461 MB / 3.855 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.727e-05/11.12, allocations: 8.812 kB / 3.855 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/11.12, allocations: 496.2 kB / 3.856 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/11.12, allocations: 375.2 kB / 3.856 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/11.12, allocations: 2.961 MB / 3.859 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/11.12, allocations: 175.9 kB / 3.859 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/11.12, allocations: 72.14 kB / 3.859 GB, free: 11.59 MB / 0.4948 GB 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.0007192/11.12, allocations: 157.3 kB / 3.859 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003946/11.13, allocations: 1.87 MB / 3.861 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/11.13, allocations: 126.9 kB / 3.861 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006482/11.14, allocations: 4.787 MB / 3.866 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.8e-05/11.14, allocations: 53.08 kB / 3.866 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/11.14, allocations: 5.219 kB / 3.866 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005267/11.14, allocations: 4.405 MB / 3.87 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/11.15, allocations: 7.528 MB / 3.878 GB, free: 9.121 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.911e-05/11.15, allocations: 5.094 kB / 3.878 GB, free: 9.121 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/11.16, allocations: 272.3 kB / 3.878 GB, free: 9.117 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/11.16, allocations: 0.5092 MB / 3.878 GB, free: 9.074 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/11.16, allocations: 26.92 kB / 3.878 GB, free: 9.074 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/11.16, allocations: 3.048 MB / 3.881 GB, free: 22.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/11.16, allocations: 7.328 kB / 3.881 GB, free: 22.97 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006922/11.17, allocations: 4.82 MB / 3.886 GB, free: 22.35 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/11.17, allocations: 0.5023 MB / 3.887 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/11.17, allocations: 11.56 kB / 3.887 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/11.17, allocations: 135.8 kB / 3.887 GB, free: 22.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/11.17, allocations: 119.1 kB / 3.887 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.716e-05/11.17, allocations: 52.25 kB / 3.887 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009886/11.17, allocations: 0.6755 MB / 3.888 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.41e-07/11.17, allocations: 0 / 3.888 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01238/11.18, allocations: 2.093 MB / 3.89 GB, free: 21.4 MB / 0.5105 GB 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.02258/11.21, allocations: 8.164 MB / 3.898 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006609/11.21, allocations: 3.353 MB / 3.901 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/11.21, allocations: 0 / 3.901 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002658/11.22, allocations: 1.593 MB / 3.902 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003704/11.22, allocations: 0.5862 MB / 3.903 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01657/11.24, allocations: 5.173 MB / 3.908 GB, free: 9.074 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001805/11.24, allocations: 1.777 MB / 3.91 GB, free: 7.711 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004528/11.24, allocations: 2.093 MB / 3.912 GB, free: 6.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/11.24, allocations: 0.8051 MB / 3.913 GB, free: 6.211 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/11.24, allocations: 0 / 3.913 GB, free: 6.211 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6101/11.85, allocations: 79.3 MB / 3.99 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002128/11.85, allocations: 159.8 kB / 3.99 GB, free: 87.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.202/17.06, allocations: 0 / 3.99 GB, free: 87.18 MB / 0.5105 GB (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