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.002338/0.002343, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.305/2.305, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001198/0.001197, allocations: 94.84 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004228/0.0004229, allocations: 15.98 kB / 327.1 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 47.58 MB / 374.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.3523/0.4549, allocations: 53.36 MB / 428 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04915/0.5041, allocations: 22.63 MB / 450.6 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002438/0.5066, allocations: 59.5 kB / 450.7 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003666/0.5103, allocations: 0.7157 MB / 451.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01565/0.526, allocations: 3.152 MB / 454.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02934/0.5553, allocations: 6.528 MB / 461.1 MB, free: 6.117 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007138/0.5625, allocations: 2.715 MB / 463.8 MB, free: 3.395 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002388/0.5649, allocations: 0.9233 MB / 464.7 MB, free: 2.453 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03795/0.6029, allocations: 12.53 MB / 477.2 MB, free: 5.914 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0359/0.6389, allocations: 12.22 MB / 489.5 MB, free: 9.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005319/0.6394, allocations: 76 kB / 489.5 MB, free: 9.605 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02683/0.6663, allocations: 8.712 MB / 498.2 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.6678, allocations: 0.561 MB / 498.8 MB, free: 332 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000926/0.6688, allocations: 400.9 kB / 499.2 MB, free: 15.92 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01491/0.6837, allocations: 5.235 MB / 0.4926 GB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.6837, allocations: 0 / 0.4926 GB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.576e-06/0.6838, allocations: 0 / 0.4926 GB, free: 10.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001055/0.6839, allocations: 7.875 kB / 0.4926 GB, free: 10.67 MB / 378.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.01063/0.6945, allocations: 2.609 MB / 0.4952 GB, free: 8.004 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.6946, allocations: 12.03 kB / 0.4952 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007544/0.6954, allocations: 235.8 kB / 0.4954 GB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006524/0.7019, allocations: 0.5988 MB / 0.496 GB, free: 7.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003734/0.7057, allocations: 1.117 MB / 0.4971 GB, free: 5.984 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000259/0.706, allocations: 146.8 kB / 0.4972 GB, free: 5.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004192/0.7064, allocations: 148 kB / 0.4974 GB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.7167, allocations: 2.805 MB / 0.5001 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.227e-05/0.7169, allocations: 0 / 0.5001 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003077/0.7172, allocations: 71.92 kB / 0.5002 GB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003262/0.7175, allocations: 138.6 kB / 0.5003 GB, free: 2.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.7288, allocations: 2.676 MB / 0.5029 GB, free: 15.86 MB / 394.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.02444/0.7533, allocations: 11.69 MB / 0.5143 GB, free: 3.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008572/0.7619, allocations: 1.778 MB / 0.5161 GB, free: 1.484 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03038/0.7923, allocations: 8.423 MB / 0.5243 GB, free: 8.062 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/0.7924, allocations: 43.56 kB / 0.5243 GB, free: 8.012 MB / 410.7 MB Notification: Performance of pre-optimization done (n=114): time 3.407e-06/0.7924, allocations: 0 / 0.5243 GB, free: 8.012 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.03678/0.8292, allocations: 7.487 MB / 0.5316 GB, free: 460 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.8294, allocations: 145.8 kB / 0.5318 GB, free: 284 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2731/1.102, allocations: 1.177 MB / 0.5329 GB, free: 136.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003899/1.103, allocations: 50.55 kB / 0.533 GB, free: 136.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007161/1.104, allocations: 0.6978 MB / 0.5337 GB, free: 136.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006465/1.104, allocations: 457.7 kB / 0.5341 GB, free: 136 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/1.104, allocations: 32.5 kB / 0.5341 GB, free: 136 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/1.105, allocations: 371.1 kB / 0.5345 GB, free: 135.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/1.108, allocations: 0.8888 MB / 0.5354 GB, free: 135.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/1.112, allocations: 1.266 MB / 0.5366 GB, free: 134.8 MB / 410.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 5.752/6.864, allocations: 0.49 GB / 1.027 GB, free: 129.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/6.864, allocations: 4 kB / 1.027 GB, free: 129.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.008917/6.873, allocations: 2.603 MB / 1.029 GB, free: 126.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008644/6.874, allocations: 4.19 MB / 1.033 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.674e-05/6.874, allocations: 12 kB / 1.033 GB, free: 122.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/6.877, allocations: 0.5116 MB / 1.034 GB, free: 121.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/6.88, allocations: 383.5 kB / 1.034 GB, free: 121.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002964/6.883, allocations: 2.915 MB / 1.037 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/6.886, allocations: 200.7 kB / 1.037 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000369/6.886, allocations: 75.97 kB / 1.037 GB, free: 118.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/6.886, allocations: 4 kB / 1.037 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008706/6.895, allocations: 2.482 MB / 1.04 GB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.272e-05/6.895, allocations: 8 kB / 1.04 GB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002505/6.897, allocations: 492.2 kB / 1.04 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/6.9, allocations: 375.5 kB / 1.04 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/6.903, allocations: 2.919 MB / 1.043 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/6.905, allocations: 191.9 kB / 1.043 GB, free: 111.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002767/6.906, allocations: 71.98 kB / 1.044 GB, free: 111.6 MB / 426.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: 48 * 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 (177): * Single equations (assignments): 173 * 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.001403/6.907, allocations: 0.5933 MB / 1.044 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/6.908, allocations: 145 kB / 1.044 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/6.92, allocations: 5.564 MB / 1.05 GB, free: 105.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.217e-05/6.92, allocations: 63.91 kB / 1.05 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/6.92, allocations: 0 / 1.05 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01011/6.93, allocations: 5.097 MB / 1.055 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01935/6.949, allocations: 8.596 MB / 1.063 GB, free: 91.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/6.949, allocations: 9.188 kB / 1.063 GB, free: 91.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002205/6.952, allocations: 299.8 kB / 1.063 GB, free: 91.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003226/6.955, allocations: 0.5513 MB / 1.064 GB, free: 90.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002992/6.955, allocations: 43.98 kB / 1.064 GB, free: 90.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002686/6.958, allocations: 2.914 MB / 1.067 GB, free: 87.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/6.958, allocations: 8.094 kB / 1.067 GB, free: 87.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/6.971, allocations: 5.52 MB / 1.072 GB, free: 81.78 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/6.973, allocations: 0.5325 MB / 1.073 GB, free: 81.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004562/6.973, allocations: 35.98 kB / 1.073 GB, free: 81.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/6.975, allocations: 161.5 kB / 1.073 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004687/6.976, allocations: 129.9 kB / 1.073 GB, free: 80.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002081/6.976, allocations: 55.97 kB / 1.073 GB, free: 80.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001738/6.978, allocations: 0.8933 MB / 1.074 GB, free: 79.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.32e-07/6.978, allocations: 0 / 1.074 GB, free: 79.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007373/6.985, allocations: 1.995 MB / 1.076 GB, free: 78.1 MB / 426.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.02182/7.007, allocations: 8.163 MB / 1.084 GB, free: 70.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01169/7.019, allocations: 3.849 MB / 1.088 GB, free: 66.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/7.019, allocations: 4.188 kB / 1.088 GB, free: 66.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00452/7.023, allocations: 1.806 MB / 1.089 GB, free: 64.47 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006329/7.03, allocations: 0.7514 MB / 1.09 GB, free: 63.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/7.049, allocations: 15.26 MB / 1.105 GB, free: 48.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/7.05, allocations: 1.789 MB / 1.107 GB, free: 46.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001748/7.052, allocations: 0.8742 MB / 1.108 GB, free: 45.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.463e-06/7.052, allocations: 0 / 1.108 GB, free: 45.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.443/12.5, allocations: 94.22 MB / 1.2 GB, free: 113.1 MB / 426.7 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