Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009535/0.0009535, allocations: 180 kB / 8.481 MB, free: 1.871 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.085/1.085, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008664/0.0008664, allocations: 82.27 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1596/0.1605, allocations: 52.96 MB / 315 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06682/0.2273, allocations: 47.58 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.192/4.419, allocations: 2.795 GB / 3.15 GB, free: 99.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/4.42, allocations: 75.3 kB / 3.15 GB, free: 99.73 MB / 426.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.671/6.091, allocations: 0.5483 GB / 3.698 GB, free: 17.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/6.091, allocations: 11.05 kB / 3.698 GB, free: 17.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005415/6.097, allocations: 0.6303 MB / 3.699 GB, free: 17.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004785/6.101, allocations: 1.45 MB / 3.7 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/6.102, allocations: 82.84 kB / 3.7 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006998/6.102, allocations: 84 kB / 3.7 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003899/6.106, allocations: 2.03 MB / 3.702 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004353/6.111, allocations: 2.224 MB / 3.704 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.598e-05/6.111, allocations: 11.92 kB / 3.704 GB, free: 11.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003217/6.111, allocations: 4 kB / 3.704 GB, free: 11.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/6.111, allocations: 134.7 kB / 3.704 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3322/6.443, allocations: 83.64 MB / 3.786 GB, free: 28.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/6.445, allocations: 0.8031 MB / 3.787 GB, free: 28.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/6.446, allocations: 0.7351 MB / 3.788 GB, free: 28.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01728/6.463, allocations: 8.228 MB / 3.796 GB, free: 39.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/6.463, allocations: 43.56 kB / 3.796 GB, free: 39.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=108): time 2.886e-06/6.464, allocations: 0 / 3.796 GB, free: 39.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=126): time 0.01436/6.478, allocations: 5.16 MB / 3.801 GB, free: 38.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/6.478, allocations: 151.3 kB / 3.801 GB, free: 38.58 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/6.479, allocations: 0.7952 MB / 3.802 GB, free: 38.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/6.48, allocations: 28.77 kB / 3.802 GB, free: 38.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/6.48, allocations: 0.6026 MB / 3.802 GB, free: 38.11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003777/6.48, allocations: 425 kB / 3.803 GB, free: 37.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/6.481, allocations: 0 / 3.803 GB, free: 37.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/6.481, allocations: 366.9 kB / 3.803 GB, free: 37.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/6.482, allocations: 0.8367 MB / 3.804 GB, free: 37.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/6.483, allocations: 1.201 MB / 3.805 GB, free: 37.17 MB / 458.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 0.02093/6.504, allocations: 5.877 MB / 3.811 GB, free: 36.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.554e-05/6.504, allocations: 3.375 kB / 3.811 GB, free: 36.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01612/6.52, allocations: 4.75 MB / 3.815 GB, free: 36.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001386/6.522, allocations: 4.008 MB / 3.819 GB, free: 32.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-05/6.522, allocations: 15.06 kB / 3.819 GB, free: 32.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/6.523, allocations: 0.5004 MB / 3.82 GB, free: 32.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/6.525, allocations: 385.7 kB / 3.82 GB, free: 32.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002576/6.527, allocations: 3.044 MB / 3.823 GB, free: 30.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/6.53, allocations: 190.8 kB / 3.823 GB, free: 30.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002927/6.53, allocations: 76.89 kB / 3.823 GB, free: 30.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/6.53, allocations: 7.656 kB / 3.823 GB, free: 30.23 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01365/6.544, allocations: 4.075 MB / 3.827 GB, free: 30.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/6.544, allocations: 11.25 kB / 3.827 GB, free: 30.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/6.545, allocations: 0.5033 MB / 3.828 GB, free: 30.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/6.547, allocations: 378.6 kB / 3.828 GB, free: 30.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/6.549, allocations: 3.049 MB / 3.831 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/6.551, allocations: 172.5 kB / 3.831 GB, free: 27.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/6.551, allocations: 75.45 kB / 3.831 GB, free: 27.94 MB / 458.7 MB 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.0005976/6.552, allocations: 173.1 kB / 3.832 GB, free: 27.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001791/6.554, allocations: 489.6 kB / 3.832 GB, free: 27.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006457/6.56, allocations: 4.837 MB / 3.837 GB, free: 27.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/6.56, allocations: 47.86 kB / 3.837 GB, free: 27.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/6.56, allocations: 1.125 kB / 3.837 GB, free: 27.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004621/6.565, allocations: 4.307 MB / 3.841 GB, free: 26.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/6.576, allocations: 7.423 MB / 3.848 GB, free: 25.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/6.576, allocations: 7.781 kB / 3.848 GB, free: 25.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/6.577, allocations: 251.3 kB / 3.849 GB, free: 25.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/6.579, allocations: 0.5304 MB / 3.849 GB, free: 25.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/6.579, allocations: 35.84 kB / 3.849 GB, free: 25.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/6.582, allocations: 3.123 MB / 3.852 GB, free: 23.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/6.582, allocations: 5.531 kB / 3.852 GB, free: 23.68 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008195/6.59, allocations: 5.614 MB / 3.858 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009429/6.599, allocations: 7.641 MB / 3.865 GB, free: 21.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/6.6, allocations: 477.9 kB / 3.866 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004805/6.601, allocations: 13.86 kB / 3.866 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/6.603, allocations: 139.3 kB / 3.866 GB, free: 21.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/6.603, allocations: 131.3 kB / 3.866 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/6.603, allocations: 51.94 kB / 3.866 GB, free: 21.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001029/6.604, allocations: 0.645 MB / 3.867 GB, free: 21.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01144/6.616, allocations: 2.475 MB / 3.869 GB, free: 21.59 MB / 458.7 MB 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.01146/6.627, allocations: 2.411 MB / 3.871 GB, free: 21.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006727/6.634, allocations: 4.047 MB / 3.875 GB, free: 21.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/6.634, allocations: 0.75 kB / 3.875 GB, free: 21.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/6.637, allocations: 2.356 MB / 3.878 GB, free: 21.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/6.64, allocations: 0.5553 MB / 3.878 GB, free: 21.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008508/6.649, allocations: 4.406 MB / 3.882 GB, free: 20.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002401/6.651, allocations: 1.883 MB / 3.884 GB, free: 19.4 MB / 458.7 MB Notification: Performance of SimCode: time 6.41e-07/6.651, allocations: 3.594 kB / 3.884 GB, free: 19.4 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_NonCircularPipes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_NonCircularPipes.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1)