Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [: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.1+maint.om/package.mo): time 0.003389/0.003389, allocations: 178.6 kB / 7.451 MB, free: 2.234 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.371/1.371, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001777/0.001777, allocations: 109.1 kB / 217.7 MB, free: 8.176 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/6.933e-06, allocations: 0 / 261.7 MB, free: 26.67 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08356, allocations: 38.75 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2702/0.3539, allocations: 71.11 MB / 371.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.3542, allocations: 69.09 kB / 371.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.04421/0.3984, allocations: 15.35 MB / 387 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.674e-05/0.3985, allocations: 16 kB / 387 MB, free: 0.8438 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003064/0.4016, allocations: 1.071 MB / 388.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.402e-05/0.4017, allocations: 12.03 kB / 388.1 MB, free: 15.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005591/0.4022, allocations: 102.9 kB / 388.2 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.404, allocations: 0.53 MB / 388.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003935/0.4044, allocations: 126.4 kB / 388.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/0.4046, allocations: 32 kB / 388.9 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001256/0.4059, allocations: 469.9 kB / 389.4 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.4071, allocations: 0.6909 MB / 390.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.4072, allocations: 0 / 390.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-05/0.4072, allocations: 0 / 390.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.4073, allocations: 20.16 kB / 390.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004327/0.4116, allocations: 1.949 MB / 392 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008213/0.4124, allocations: 433.8 kB / 392.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006137/0.4131, allocations: 354.4 kB / 392.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.116e-05/0.4132, allocations: 16.33 kB / 392.8 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.4132, allocations: 46.91 kB / 392.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 3.236e-06/0.4132, allocations: 0 / 392.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=74): time 0.002352/0.4156, allocations: 0.8453 MB / 393.7 MB, free: 11.3 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003496/0.416, allocations: 0.8191 MB / 394.5 MB, free: 10.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000758/0.4167, allocations: 479 kB / 395 MB, free: 9.934 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.227e-05/0.4168, allocations: 29.7 kB / 395 MB, free: 9.898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.417, allocations: 223.5 kB / 395.2 MB, free: 9.707 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.4173, allocations: 239.4 kB / 395.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-05/0.4173, allocations: 4 kB / 395.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4175, allocations: 384.9 kB / 395.8 MB, free: 9.141 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.4179, allocations: 201.7 kB / 396 MB, free: 9.031 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.4185, allocations: 470.8 kB / 396.5 MB, free: 8.598 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004444/0.4189, allocations: 249.9 kB / 396.7 MB, free: 8.441 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.419, allocations: 0 / 396.7 MB, free: 8.441 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002364/0.4213, allocations: 0.9004 MB / 397.6 MB, free: 7.727 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.4214, allocations: 4 kB / 397.7 MB, free: 7.723 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.4214, allocations: 4 kB / 397.7 MB, free: 7.719 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007235/0.4221, allocations: 201.3 kB / 397.9 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007891/0.4229, allocations: 155.2 kB / 398 MB, free: 7.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007861/0.4308, allocations: 6.044 MB / 404 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.4319, allocations: 99.38 kB / 404.1 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.4321, allocations: 19.81 kB / 404.2 MB, free: 1.281 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * 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 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004675/0.4326, allocations: 133 kB / 404.3 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.4328, allocations: 83.06 kB / 404.4 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002673/0.4331, allocations: 78.8 kB / 404.5 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.4331, allocations: 8 kB / 404.5 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4332, allocations: 0 / 404.5 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002156/0.4353, allocations: 1.136 MB / 405.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003859/0.4392, allocations: 1.719 MB / 407.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.4392, allocations: 0 / 407.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008663/0.4401, allocations: 159 kB / 407.5 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005429/0.4407, allocations: 169.6 kB / 407.6 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-05/0.4408, allocations: 11.89 kB / 407.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006935/0.4477, allocations: 4.602 MB / 412.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.4478, allocations: 3.938 kB / 412.3 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003206/0.451, allocations: 1.23 MB / 413.5 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004077/0.4515, allocations: 168 kB / 413.6 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/0.4517, allocations: 0 / 413.6 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008167/0.4526, allocations: 51.95 kB / 413.7 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.4527, allocations: 44.58 kB / 413.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.339e-05/0.4528, allocations: 16 kB / 413.8 MB, free: 8.012 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0006929/0.4535, allocations: 374.9 kB / 414.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001324/0.4548, allocations: 247.5 kB / 414.4 MB, free: 7.406 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003361/0.4552, allocations: 119.1 kB / 414.5 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.4576, allocations: 1.121 MB / 415.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.4577, allocations: 4.062 kB / 415.6 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.4589, allocations: 0.6716 MB / 416.3 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.4601, allocations: 171.5 kB / 416.4 MB, free: 5.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.4638, allocations: 1.26 MB / 417.7 MB, free: 3.938 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.4649, allocations: 1.019 MB / 418.7 MB, free: 2.891 MB / 298.7 MB Notification: Performance of SimCode: time 1.393e-06/0.4649, allocations: 0 / 418.7 MB, free: 2.891 MB / 298.7 MB Notification: Performance of Templates: time 0.02929/0.4942, allocations: 14.55 MB / 433.3 MB, free: 4.32 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)