Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [: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.001744/0.001744, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 87.5 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.472e-06/6.512e-06, allocations: 0 / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.292/0.3942, allocations: 79.32 MB / 473.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001655/0.3944, allocations: 67.75 kB / 474 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.014/0.4084, allocations: 5.821 MB / 479.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.4084, allocations: 4 kB / 479.8 MB, free: 9.086 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.00064/0.4091, allocations: 0.5731 MB / 480.4 MB, free: 8.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.318e-05/0.4091, allocations: 8.031 kB / 480.4 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.926e-05/0.4092, allocations: 43.53 kB / 480.4 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.4094, allocations: 298 kB / 480.7 MB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.802e-05/0.4095, allocations: 42.12 kB / 480.8 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.4096, allocations: 27.83 kB / 480.8 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002754/0.4099, allocations: 166 kB / 481 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.4102, allocations: 269.1 kB / 481.2 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.4102, allocations: 0 / 481.2 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.4103, allocations: 0.6875 kB / 481.2 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.4103, allocations: 4 kB / 481.2 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.4115, allocations: 0.7618 MB / 482 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004713/0.4119, allocations: 243.9 kB / 482.2 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.4121, allocations: 95.42 kB / 482.3 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.4121, allocations: 12.06 kB / 482.3 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.4122, allocations: 43.31 kB / 482.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.4122, allocations: 0 / 482.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005429/0.4127, allocations: 261.6 kB / 482.6 MB, free: 6.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.4128, allocations: 320.3 kB / 482.9 MB, free: 6.199 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.413, allocations: 233.5 kB / 483.2 MB, free: 6.012 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.4131, allocations: 29.7 kB / 483.2 MB, free: 5.977 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.4131, allocations: 132.1 kB / 483.3 MB, free: 5.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.45e-05/0.4132, allocations: 101.8 kB / 483.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/0.4132, allocations: 0 / 483.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.4133, allocations: 338.6 kB / 483.8 MB, free: 5.438 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.4134, allocations: 78.19 kB / 483.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.4136, allocations: 180.8 kB / 484 MB, free: 5.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.4137, allocations: 95.92 kB / 484.1 MB, free: 5.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4137, allocations: 4 kB / 484.1 MB, free: 5.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000469/0.4142, allocations: 311.5 kB / 484.4 MB, free: 4.914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.4142, allocations: 4 kB / 484.4 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4142, allocations: 0 / 484.4 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.4144, allocations: 43.69 kB / 484.5 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.4155, allocations: 223.8 kB / 484.7 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.4181, allocations: 2.853 MB / 487.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.4183, allocations: 39.67 kB / 487.6 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.4183, allocations: 11.44 kB / 487.6 MB, free: 1.684 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTank1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001416/0.4185, allocations: 109 kB / 487.7 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.4186, allocations: 35.56 kB / 487.7 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.4186, allocations: 39.78 kB / 487.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4186, allocations: 11.66 kB / 487.8 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4187, allocations: 3.906 kB / 487.8 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004565/0.4191, allocations: 0.6262 MB / 488.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/0.4195, allocations: 342.6 kB / 488.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4195, allocations: 0 / 488.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.4208, allocations: 276.5 kB / 489 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.874e-05/0.4209, allocations: 27.61 kB / 489 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.421, allocations: 7.906 kB / 489 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/0.4235, allocations: 2.706 MB / 491.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4235, allocations: 0 / 491.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005974/0.4241, allocations: 468 kB / 492.2 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.4243, allocations: 139 kB / 492.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.4243, allocations: 7.984 kB / 492.4 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.4246, allocations: 16.89 kB / 492.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.4246, allocations: 15.67 kB / 492.4 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.4247, allocations: 7.984 kB / 492.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001896/0.4249, allocations: 190.6 kB / 492.6 MB, free: 12.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004414/0.4253, allocations: 95.84 kB / 492.7 MB, free: 12.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002576/0.4256, allocations: 115.2 kB / 492.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.4274, allocations: 0.5484 MB / 493.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4274, allocations: 4 kB / 493.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.4291, allocations: 488.7 kB / 493.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.4296, allocations: 65.19 kB / 493.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.4312, allocations: 0.6429 MB / 494.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004973/0.4317, allocations: 0.8112 MB / 495.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4317, allocations: 4 kB / 495.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of Templates: time 0.009918/0.4417, allocations: 5.206 MB / 0.4888 GB, free: 4.988 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches