Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000999/0.000999, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 101.2 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.057e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1264, allocations: 51.47 MB / 395.2 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.945/8.072, allocations: 2.801 GB / 3.187 GB, free: 48.04 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/8.072, allocations: 72.62 kB / 3.187 GB, free: 47.97 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534/10.61, allocations: 0.5497 GB / 3.737 GB, free: 14.03 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.955e-06/10.61, allocations: 3.938 kB / 3.737 GB, free: 14.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003245/10.61, allocations: 48.03 kB / 3.737 GB, free: 13.98 MB / 474.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.01699/10.62, allocations: 2.807 MB / 3.74 GB, free: 11.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.313e-05/10.62, allocations: 12.03 kB / 3.74 GB, free: 11.12 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005912/10.63, allocations: 0.5965 MB / 3.74 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006065/10.64, allocations: 1.437 MB / 3.742 GB, free: 9.059 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002893/10.64, allocations: 75.98 kB / 3.742 GB, free: 8.984 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008576/10.64, allocations: 87.98 kB / 3.742 GB, free: 8.898 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005742/10.64, allocations: 1.966 MB / 3.744 GB, free: 6.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00678/10.65, allocations: 2.175 MB / 3.746 GB, free: 4.586 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.302e-05/10.65, allocations: 7.938 kB / 3.746 GB, free: 4.578 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006584/10.65, allocations: 11.98 kB / 3.746 GB, free: 4.566 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002043/10.65, allocations: 126.7 kB / 3.746 GB, free: 4.441 MB / 474.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.6937/11.34, allocations: 91.02 MB / 3.835 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003479/11.35, allocations: 1.111 MB / 3.836 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001883/11.35, allocations: 0.6993 MB / 3.837 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02326/11.37, allocations: 9.041 MB / 3.845 GB, free: 20.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.404e-05/11.37, allocations: 46.06 kB / 3.845 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 3.847e-06/11.37, allocations: 3.969 kB / 3.845 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=126): time 0.01857/11.39, allocations: 5.031 MB / 3.85 GB, free: 20.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/11.39, allocations: 145.5 kB / 3.85 GB, free: 20 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002387/11.39, allocations: 0.7882 MB / 3.851 GB, free: 19.85 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002482/11.39, allocations: 29.36 kB / 3.851 GB, free: 19.82 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000993/11.4, allocations: 0.7382 MB / 3.852 GB, free: 19.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006429/11.4, allocations: 422.8 kB / 3.852 GB, free: 19.31 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/11.4, allocations: 0 / 3.852 GB, free: 19.31 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002642/11.4, allocations: 368 kB / 3.853 GB, free: 19 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/11.4, allocations: 0.7447 MB / 3.853 GB, free: 19 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/11.4, allocations: 1.111 MB / 3.855 GB, free: 18.59 MB / 0.5105 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.01537/11.42, allocations: 4.439 MB / 3.859 GB, free: 18.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-05/11.42, allocations: 7.891 kB / 3.859 GB, free: 18.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.009431/11.42, allocations: 2.982 MB / 3.862 GB, free: 18.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003615/11.43, allocations: 4.015 MB / 3.866 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.442e-05/11.43, allocations: 13.41 kB / 3.866 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/11.43, allocations: 499.8 kB / 3.866 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/11.43, allocations: 376.2 kB / 3.867 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003641/11.44, allocations: 2.947 MB / 3.869 GB, free: 27.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/11.44, allocations: 193 kB / 3.87 GB, free: 27.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003367/11.44, allocations: 78.5 kB / 3.87 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/11.44, allocations: 3.875 kB / 3.87 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008148/11.45, allocations: 2.737 MB / 3.872 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/11.45, allocations: 8.281 kB / 3.872 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001558/11.45, allocations: 490 kB / 3.873 GB, free: 27.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/11.45, allocations: 374.6 kB / 3.873 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/11.45, allocations: 2.948 MB / 3.876 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/11.46, allocations: 184.8 kB / 3.876 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002554/11.46, allocations: 73.53 kB / 3.876 GB, free: 25.52 MB / 0.5261 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.000865/11.46, allocations: 160.8 kB / 3.876 GB, free: 25.41 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004417/11.46, allocations: 1.868 MB / 3.878 GB, free: 25.24 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/11.46, allocations: 132.1 kB / 3.878 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006892/11.47, allocations: 4.785 MB / 3.883 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.165e-05/11.47, allocations: 51.64 kB / 3.883 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/11.47, allocations: 0 / 3.883 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005646/11.47, allocations: 4.409 MB / 3.887 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/11.49, allocations: 7.528 MB / 3.895 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-05/11.49, allocations: 7.859 kB / 3.895 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/11.49, allocations: 267.5 kB / 3.895 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001688/11.49, allocations: 0.513 MB / 3.896 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/11.49, allocations: 23.5 kB / 3.896 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00283/11.49, allocations: 3.041 MB / 3.899 GB, free: 20.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/11.49, allocations: 5.75 kB / 3.899 GB, free: 20.99 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00747/11.5, allocations: 4.827 MB / 3.903 GB, free: 20.37 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/11.5, allocations: 0.4987 MB / 3.904 GB, free: 20.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005015/11.5, allocations: 21.73 kB / 3.904 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001665/11.51, allocations: 131.2 kB / 3.904 GB, free: 20.15 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002719/11.51, allocations: 122.8 kB / 3.904 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/11.51, allocations: 49.25 kB / 3.904 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001529/11.51, allocations: 0.6848 MB / 3.905 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.9e-07/11.51, allocations: 0 / 3.905 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01176/11.52, allocations: 2.104 MB / 3.907 GB, free: 19.93 MB / 0.5261 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.0246/11.54, allocations: 8.178 MB / 3.915 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007866/11.55, allocations: 3.356 MB / 3.918 GB, free: 17.95 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/11.55, allocations: 0 / 3.918 GB, free: 17.95 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002813/11.56, allocations: 1.593 MB / 3.92 GB, free: 17.94 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003971/11.56, allocations: 0.5867 MB / 3.92 GB, free: 17.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/11.58, allocations: 5.188 MB / 3.925 GB, free: 16.68 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/11.58, allocations: 1.77 MB / 3.927 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004745/11.58, allocations: 2.093 MB / 3.929 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/11.58, allocations: 0.8089 MB / 3.93 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/11.58, allocations: 0 / 3.93 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6654/12.25, allocations: 80.95 MB / 4.009 GB, free: 88.35 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002963/12.25, allocations: 154.1 kB / 4.009 GB, free: 88.16 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.435/17.69, allocations: 0 / 4.009 GB, free: 88.16 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_NonCircularPipes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_NonCircularPipes.fmu > Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat