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.001452/0.001451, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.932/1.932, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001121, allocations: 92.42 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.857e-05/2.858e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3412, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.926/8.267, allocations: 2.795 GB / 3.149 GB, free: 81.43 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/8.267, allocations: 77.59 kB / 3.149 GB, free: 81.43 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.784/11.05, allocations: 0.544 GB / 3.694 GB, free: 38.05 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.763e-06/11.05, allocations: 0 / 3.694 GB, free: 38.05 MB / 443.1 MB Notification: Performance of Transformations before backend: time 0.0001784/11.05, allocations: 47.91 kB / 3.694 GB, free: 38.01 MB / 443.1 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.01252/11.06, allocations: 2.804 MB / 3.696 GB, free: 35.35 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/11.06, allocations: 8.031 kB / 3.696 GB, free: 35.34 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006602/11.07, allocations: 0.6028 MB / 3.697 GB, free: 34.74 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005414/11.08, allocations: 1.441 MB / 3.698 GB, free: 33.28 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/11.08, allocations: 75.98 kB / 3.698 GB, free: 33.2 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004367/11.08, allocations: 91.91 kB / 3.698 GB, free: 33.11 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005065/11.08, allocations: 1.966 MB / 3.7 GB, free: 31.14 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004655/11.09, allocations: 2.17 MB / 3.703 GB, free: 28.81 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.233e-05/11.09, allocations: 11.89 kB / 3.703 GB, free: 28.8 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/11.09, allocations: 4 kB / 3.703 GB, free: 28.79 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002223/11.09, allocations: 130.6 kB / 3.703 GB, free: 28.66 MB / 443.1 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.5852/11.67, allocations: 82.9 MB / 3.784 GB, free: 19.21 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/11.67, allocations: 1.111 MB / 3.785 GB, free: 19.18 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/11.68, allocations: 0.6999 MB / 3.785 GB, free: 19.17 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02667/11.7, allocations: 8.327 MB / 3.794 GB, free: 13.82 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/11.7, allocations: 45.81 kB / 3.794 GB, free: 13.79 MB / 459.1 MB Notification: Performance of pre-optimization done (n=108): time 3.457e-06/11.7, allocations: 0 / 3.794 GB, free: 13.79 MB / 459.1 MB Notification: Performance of matching and sorting (n=126): time 0.01922/11.72, allocations: 5.042 MB / 3.798 GB, free: 13.24 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/11.72, allocations: 142.4 kB / 3.799 GB, free: 13.08 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/11.72, allocations: 0.7906 MB / 3.799 GB, free: 12.93 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003396/11.72, allocations: 25.7 kB / 3.799 GB, free: 12.9 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005668/11.72, allocations: 0.737 MB / 3.8 GB, free: 12.54 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005222/11.73, allocations: 428.8 kB / 3.801 GB, free: 12.32 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/11.73, allocations: 0 / 3.801 GB, free: 12.32 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/11.73, allocations: 375.8 kB / 3.801 GB, free: 12.01 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/11.73, allocations: 0.7493 MB / 3.802 GB, free: 12.01 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/11.73, allocations: 1.104 MB / 3.803 GB, free: 11.61 MB / 459.1 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.03134/11.76, allocations: 5.604 MB / 3.808 GB, free: 11.3 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/11.76, allocations: 5.531 kB / 3.808 GB, free: 11.3 MB / 459.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.02283/11.78, allocations: 4.148 MB / 3.812 GB, free: 11.12 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002011/11.79, allocations: 4.011 MB / 3.816 GB, free: 22.91 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/11.79, allocations: 10.97 kB / 3.816 GB, free: 22.91 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002335/11.79, allocations: 496.3 kB / 3.817 GB, free: 22.87 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/11.79, allocations: 374.8 kB / 3.817 GB, free: 22.87 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/11.79, allocations: 2.958 MB / 3.82 GB, free: 20.77 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003075/11.8, allocations: 190 kB / 3.82 GB, free: 20.76 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002593/11.8, allocations: 69.58 kB / 3.82 GB, free: 20.76 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/11.8, allocations: 2.844 kB / 3.82 GB, free: 20.76 MB / 475.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02206/11.82, allocations: 3.961 MB / 3.824 GB, free: 20.64 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/11.82, allocations: 10.78 kB / 3.824 GB, free: 20.64 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/11.82, allocations: 469.5 kB / 3.824 GB, free: 20.6 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/11.82, allocations: 372.2 kB / 3.825 GB, free: 20.6 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00342/11.83, allocations: 2.953 MB / 3.828 GB, free: 18.51 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00245/11.83, allocations: 172.8 kB / 3.828 GB, free: 18.49 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/11.83, allocations: 74.7 kB / 3.828 GB, free: 18.49 MB / 475.1 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.0006435/11.83, allocations: 158.7 kB / 3.828 GB, free: 18.38 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005769/11.84, allocations: 1.871 MB / 3.83 GB, free: 18.21 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006003/11.84, allocations: 125.7 kB / 3.83 GB, free: 18.15 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009033/11.85, allocations: 4.779 MB / 3.835 GB, free: 17.72 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-05/11.85, allocations: 56.19 kB / 3.835 GB, free: 17.71 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/11.85, allocations: 4 kB / 3.835 GB, free: 17.71 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007578/11.85, allocations: 4.412 MB / 3.839 GB, free: 16.98 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/11.87, allocations: 7.526 MB / 3.846 GB, free: 16.1 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/11.87, allocations: 8.094 kB / 3.846 GB, free: 16.1 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002084/11.87, allocations: 268.9 kB / 3.847 GB, free: 16.09 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002529/11.88, allocations: 0.5096 MB / 3.847 GB, free: 16.05 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002588/11.88, allocations: 32.81 kB / 3.847 GB, free: 16.05 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003339/11.88, allocations: 3.043 MB / 3.85 GB, free: 13.95 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/11.88, allocations: 0 / 3.85 GB, free: 13.95 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/11.89, allocations: 4.827 MB / 3.855 GB, free: 13.33 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/11.89, allocations: 0.4958 MB / 3.855 GB, free: 13.11 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003402/11.89, allocations: 14.69 kB / 3.855 GB, free: 13.11 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/11.89, allocations: 145.6 kB / 3.856 GB, free: 13.08 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003391/11.9, allocations: 118.2 kB / 3.856 GB, free: 13.08 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/11.9, allocations: 47.02 kB / 3.856 GB, free: 13.08 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.001306/11.9, allocations: 0.6834 MB / 3.856 GB, free: 12.97 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.823e-06/11.9, allocations: 0 / 3.856 GB, free: 12.97 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.009925/11.91, allocations: 2.081 MB / 3.858 GB, free: 12.88 MB / 475.1 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.0239/11.93, allocations: 8.158 MB / 3.866 GB, free: 10.96 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.0085/11.94, allocations: 3.319 MB / 3.87 GB, free: 10.91 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/11.94, allocations: 5.719 kB / 3.87 GB, free: 10.91 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003801/11.94, allocations: 1.577 MB / 3.871 GB, free: 10.89 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005393/11.95, allocations: 0.5743 MB / 3.872 GB, free: 10.86 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/11.96, allocations: 5.214 MB / 3.877 GB, free: 8.746 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001648/11.97, allocations: 1.752 MB / 3.879 GB, free: 7.398 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/11.97, allocations: 0.8312 MB / 3.879 GB, free: 7.285 MB / 475.1 MB Notification: Performance of SimCode: time 1.563e-06/11.97, allocations: 0 / 3.879 GB, free: 7.285 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.018/16.99, allocations: 95.03 MB / 3.972 GB, free: 82.99 MB / 491.1 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