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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009561/0.0009564, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.085/1.085, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008493/0.0008495, allocations: 91.73 kB / 286.3 MB, free: 5.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08794/0.08882, allocations: 56.89 MB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07877/0.1676, allocations: 51.47 MB / 394.7 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.927/4.095, allocations: 2.801 GB / 3.186 GB, free: 105.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001503/4.095, allocations: 77.78 kB / 3.186 GB, free: 105.8 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 1.526/5.621, allocations: 0.554 GB / 3.74 GB, free: 26.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/5.621, allocations: 8.75 kB / 3.74 GB, free: 26.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00428/5.626, allocations: 0.6288 MB / 3.741 GB, free: 26.04 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/5.629, allocations: 1.458 MB / 3.743 GB, free: 25.67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/5.629, allocations: 81.03 kB / 3.743 GB, free: 25.67 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/5.629, allocations: 86.97 kB / 3.743 GB, free: 25.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003031/5.632, allocations: 2.03 MB / 3.745 GB, free: 25.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/5.635, allocations: 2.235 MB / 3.747 GB, free: 25.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/5.635, allocations: 6.938 kB / 3.747 GB, free: 25.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000155/5.635, allocations: 7.656 kB / 3.747 GB, free: 25.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.43e-05/5.635, allocations: 133.8 kB / 3.747 GB, free: 25.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.15/5.785, allocations: 93.93 MB / 3.839 GB, free: 5.125 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/5.786, allocations: 0.8051 MB / 3.839 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000995/5.787, allocations: 0.7215 MB / 3.84 GB, free: 3.82 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1706/5.958, allocations: 8.941 MB / 3.849 GB, free: 105 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/5.958, allocations: 48.94 kB / 3.849 GB, free: 105 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=108): time 3.136e-06/5.958, allocations: 0 / 3.849 GB, free: 105 MB / 0.4948 GB Notification: Performance of matching and sorting (n=126): time 0.01398/5.972, allocations: 5.162 MB / 3.854 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/5.972, allocations: 145.8 kB / 3.854 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/5.974, allocations: 0.8043 MB / 3.855 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001449/5.974, allocations: 25.7 kB / 3.855 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/5.974, allocations: 0.6018 MB / 3.856 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/5.974, allocations: 422.1 kB / 3.856 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/5.975, allocations: 4.797 kB / 3.856 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.837e-05/5.975, allocations: 365.5 kB / 3.856 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/5.976, allocations: 0.8335 MB / 3.857 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/5.977, allocations: 1.202 MB / 3.858 GB, free: 103 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.01358/5.991, allocations: 4.699 MB / 3.863 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/5.991, allocations: 3.938 kB / 3.863 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.009524/6, allocations: 3.591 MB / 3.866 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006872/6.001, allocations: 4.005 MB / 3.87 GB, free: 98.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/6.001, allocations: 7.719 kB / 3.87 GB, free: 98.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/6.002, allocations: 0.5094 MB / 3.871 GB, free: 98.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/6.004, allocations: 385.4 kB / 3.871 GB, free: 98.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/6.006, allocations: 3.039 MB / 3.874 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/6.008, allocations: 190.9 kB / 3.874 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002378/6.008, allocations: 80.5 kB / 3.874 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.118e-06/6.008, allocations: 7.156 kB / 3.874 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007302/6.016, allocations: 2.912 MB / 3.877 GB, free: 96.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.169e-05/6.016, allocations: 13.75 kB / 3.877 GB, free: 96.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/6.017, allocations: 0.5054 MB / 3.878 GB, free: 96.26 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/6.019, allocations: 384.2 kB / 3.878 GB, free: 96.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/6.021, allocations: 3.051 MB / 3.881 GB, free: 94.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/6.023, allocations: 172.1 kB / 3.881 GB, free: 94.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/6.023, allocations: 73.73 kB / 3.881 GB, free: 94.17 MB / 0.4948 GB Warning: Assuming redundant initial conditions for the following 2 initial equations: 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.0004724/6.023, allocations: 160.6 kB / 3.881 GB, free: 94.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/6.025, allocations: 498.5 kB / 3.882 GB, free: 94 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006128/6.031, allocations: 4.839 MB / 3.887 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-05/6.031, allocations: 43.02 kB / 3.887 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/6.031, allocations: 0 / 3.887 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00446/6.036, allocations: 4.314 MB / 3.891 GB, free: 92.97 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/6.047, allocations: 7.423 MB / 3.898 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/6.047, allocations: 8.703 kB / 3.898 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009921/6.048, allocations: 249.2 kB / 3.898 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001533/6.049, allocations: 0.5276 MB / 3.899 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/6.05, allocations: 36.61 kB / 3.899 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/6.052, allocations: 3.125 MB / 3.902 GB, free: 89.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/6.052, allocations: 11.19 kB / 3.902 GB, free: 89.98 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007164/6.059, allocations: 5.613 MB / 3.908 GB, free: 89.31 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008585/6.067, allocations: 7.64 MB / 3.915 GB, free: 88.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/6.068, allocations: 481.2 kB / 3.915 GB, free: 88.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004228/6.069, allocations: 13.42 kB / 3.915 GB, free: 88.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/6.07, allocations: 143.8 kB / 3.916 GB, free: 88.06 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/6.071, allocations: 123.4 kB / 3.916 GB, free: 88.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/6.071, allocations: 54.22 kB / 3.916 GB, free: 88.05 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0009366/6.072, allocations: 0.6488 MB / 3.916 GB, free: 87.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009807/6.081, allocations: 2.527 MB / 3.919 GB, free: 87.87 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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: 26 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.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 (117): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1,1 1,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.009954/6.091, allocations: 2.439 MB / 3.921 GB, free: 87.65 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005811/6.097, allocations: 4.042 MB / 3.925 GB, free: 87.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/6.097, allocations: 0 / 3.925 GB, free: 87.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00251/6.1, allocations: 2.358 MB / 3.928 GB, free: 87.58 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002841/6.103, allocations: 0.5487 MB / 3.928 GB, free: 87.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006888/6.11, allocations: 4.4 MB / 3.932 GB, free: 86.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/6.111, allocations: 1.876 MB / 3.934 GB, free: 86.08 MB / 0.4948 GB Notification: Performance of SimCode: time 8.11e-07/6.111, allocations: 0 / 3.934 GB, free: 86.08 MB / 0.4948 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)