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"}) [: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 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 181.5 kB / 8.136 MB, free: 2.215 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.154/1.154, allocations: 221.4 MB / 229.9 MB, free: 3.043 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.0008976/0.0008976, allocations: 99.98 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1003/0.1012, allocations: 55.81 MB / 336.6 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.2998, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.899/4.199, allocations: 2.8 GB / 3.178 GB, free: 10.37 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/4.199, allocations: 79.89 kB / 3.178 GB, free: 10.29 MB / 442.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.725/5.924, allocations: 0.5546 GB / 3.733 GB, free: 39.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/5.924, allocations: 10.16 kB / 3.733 GB, free: 39.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004888/5.929, allocations: 0.6291 MB / 3.733 GB, free: 39.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003728/5.932, allocations: 1.455 MB / 3.735 GB, free: 38.74 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/5.933, allocations: 83.23 kB / 3.735 GB, free: 38.74 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004522/5.933, allocations: 88.22 kB / 3.735 GB, free: 38.74 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003315/5.936, allocations: 2.031 MB / 3.737 GB, free: 38.73 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003693/5.94, allocations: 2.224 MB / 3.739 GB, free: 38.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.514e-05/5.94, allocations: 11.19 kB / 3.739 GB, free: 38.28 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002715/5.94, allocations: 10.84 kB / 3.739 GB, free: 38.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/5.941, allocations: 136.4 kB / 3.739 GB, free: 38.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1477/6.088, allocations: 83.66 MB / 3.821 GB, free: 17.61 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/6.09, allocations: 0.8062 MB / 3.822 GB, free: 17.59 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/6.091, allocations: 0.7227 MB / 3.822 GB, free: 17.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01628/6.107, allocations: 8.228 MB / 3.83 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/6.107, allocations: 42.69 kB / 3.831 GB, free: 12.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.987e-06/6.107, allocations: 0 / 3.831 GB, free: 12.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=126): time 0.01434/6.121, allocations: 5.168 MB / 3.836 GB, free: 11.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.326e-05/6.121, allocations: 144.8 kB / 3.836 GB, free: 11.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/6.123, allocations: 0.8045 MB / 3.836 GB, free: 27.16 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001306/6.123, allocations: 29.3 kB / 3.837 GB, free: 27.13 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/6.123, allocations: 0.594 MB / 3.837 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/6.123, allocations: 423.9 kB / 3.837 GB, free: 26.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/6.123, allocations: 9.062 kB / 3.838 GB, free: 26.47 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001459/6.124, allocations: 364.5 kB / 3.838 GB, free: 26.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/6.125, allocations: 0.8388 MB / 3.839 GB, free: 26.16 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/6.126, allocations: 1.197 MB / 3.84 GB, free: 25.76 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.01141/6.137, allocations: 4.464 MB / 3.844 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-06/6.137, allocations: 7.562 kB / 3.844 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00768/6.145, allocations: 3.347 MB / 3.847 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001265/6.146, allocations: 4.008 MB / 3.851 GB, free: 20.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/6.146, allocations: 12 kB / 3.851 GB, free: 20.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/6.148, allocations: 0.5083 MB / 3.852 GB, free: 20.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/6.149, allocations: 376.8 kB / 3.852 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/6.152, allocations: 3.049 MB / 3.855 GB, free: 17.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/6.153, allocations: 193.1 kB / 3.855 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/6.154, allocations: 75.53 kB / 3.855 GB, free: 17.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/6.154, allocations: 4 kB / 3.855 GB, free: 17.01 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005305/6.159, allocations: 2.669 MB / 3.858 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/6.159, allocations: 16.06 kB / 3.858 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/6.16, allocations: 0.5013 MB / 3.859 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/6.162, allocations: 379.9 kB / 3.859 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/6.164, allocations: 3.046 MB / 3.862 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/6.166, allocations: 182.5 kB / 3.862 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002409/6.166, allocations: 72.39 kB / 3.862 GB, free: 12.09 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.0005233/6.167, allocations: 156.7 kB / 3.862 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001506/6.169, allocations: 498.6 kB / 3.863 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005967/6.174, allocations: 4.841 MB / 3.868 GB, free: 8.914 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.092e-05/6.175, allocations: 40.98 kB / 3.868 GB, free: 8.898 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/6.175, allocations: 0 / 3.868 GB, free: 8.898 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004688/6.179, allocations: 4.312 MB / 3.872 GB, free: 6.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/6.191, allocations: 7.434 MB / 3.879 GB, free: 2.016 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/6.191, allocations: 0 / 3.879 GB, free: 2.016 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/6.192, allocations: 254.2 kB / 3.879 GB, free: 1.832 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001647/6.194, allocations: 0.5281 MB / 3.88 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/6.194, allocations: 39.2 kB / 3.88 GB, free: 1.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1574/6.351, allocations: 3.122 MB / 3.883 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/6.351, allocations: 6.781 kB / 3.883 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01282/6.364, allocations: 5.618 MB / 3.888 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01352/6.378, allocations: 7.64 MB / 3.896 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009875/6.379, allocations: 477.8 kB / 3.896 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/6.379, allocations: 15.25 kB / 3.896 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/6.38, allocations: 144.5 kB / 3.896 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/6.381, allocations: 115.2 kB / 3.897 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/6.381, allocations: 61.42 kB / 3.897 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0007598/6.381, allocations: 0.6419 MB / 3.897 GB, free: 113 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009289/6.391, allocations: 2.488 MB / 3.9 GB, free: 113 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.009302/6.4, allocations: 2.424 MB / 3.902 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005485/6.406, allocations: 4.04 MB / 3.906 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/6.406, allocations: 3.266 kB / 3.906 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002591/6.408, allocations: 2.36 MB / 3.908 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/6.411, allocations: 0.5424 MB / 3.909 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00693/6.418, allocations: 4.403 MB / 3.913 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/6.42, allocations: 1.873 MB / 3.915 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of SimCode: time 5.91e-07/6.42, allocations: 2.25 kB / 3.915 GB, free: 111.4 MB / 0.4948 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)