Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.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.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.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.002329/0.00233, allocations: 195.9 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.5 MB / 234.4 MB, free: 3.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000955/0.0009552, allocations: 97.14 kB / 286.3 MB, free: 5.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.977e-06/9.017e-06, allocations: 4 kB / 343.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1229, allocations: 51.48 MB / 394.6 MB, free: 5.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6865/0.8095, allocations: 322.3 MB / 0.7001 GB, free: 34.97 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.8098, allocations: 86.08 kB / 0.7002 GB, free: 34.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.5175/1.327, allocations: 139.9 MB / 0.8368 GB, free: 73.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.525e-05/1.327, allocations: 12.94 kB / 0.8368 GB, free: 73.61 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002358/1.33, allocations: 1.038 MB / 0.8378 GB, free: 72.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/1.33, allocations: 8.031 kB / 0.8379 GB, free: 72.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000332/1.33, allocations: 91.05 kB / 0.8379 GB, free: 72.44 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/1.331, allocations: 0.5834 MB / 0.8385 GB, free: 71.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/1.331, allocations: 20 kB / 0.8385 GB, free: 71.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.999e-05/1.331, allocations: 32 kB / 0.8386 GB, free: 71.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008859/1.332, allocations: 0.6228 MB / 0.8392 GB, free: 71.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008795/1.333, allocations: 0.6659 MB / 0.8398 GB, free: 70.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/1.333, allocations: 0 / 0.8398 GB, free: 70.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/1.333, allocations: 8 kB / 0.8398 GB, free: 70.44 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-05/1.333, allocations: 44.97 kB / 0.8399 GB, free: 70.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003434/1.337, allocations: 2.752 MB / 0.8426 GB, free: 67.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/1.337, allocations: 370.8 kB / 0.8429 GB, free: 67.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/1.337, allocations: 246.1 kB / 0.8431 GB, free: 66.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002266/1.338, allocations: 343.9 kB / 0.8435 GB, free: 66.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/1.338, allocations: 38.98 kB / 0.8435 GB, free: 66.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 1.974e-06/1.338, allocations: 4 kB / 0.8435 GB, free: 66.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.005051/1.343, allocations: 1.863 MB / 0.8453 GB, free: 64.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/1.343, allocations: 89.61 kB / 0.8454 GB, free: 64.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004599/1.343, allocations: 446.1 kB / 0.8458 GB, free: 63.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/1.343, allocations: 29.69 kB / 0.8459 GB, free: 63.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/1.343, allocations: 256.2 kB / 0.8461 GB, free: 63.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/1.344, allocations: 198.5 kB / 0.8463 GB, free: 63.49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/1.344, allocations: 0 / 0.8463 GB, free: 63.49 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/1.344, allocations: 374.8 kB / 0.8467 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/1.344, allocations: 269.5 kB / 0.8469 GB, free: 62.85 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/1.344, allocations: 445.3 kB / 0.8473 GB, free: 62.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/1.346, allocations: 0.6001 MB / 0.8479 GB, free: 61.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/1.346, allocations: 8 kB / 0.8479 GB, free: 61.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002642/1.349, allocations: 1.148 MB / 0.8491 GB, free: 60.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002742/1.349, allocations: 1.741 MB / 0.8508 GB, free: 58.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/1.349, allocations: 4 kB / 0.8508 GB, free: 58.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000515/1.35, allocations: 180.6 kB / 0.8509 GB, free: 58.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/1.351, allocations: 143.8 kB / 0.8511 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/1.352, allocations: 0.9893 MB / 0.852 GB, free: 57.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006016/1.353, allocations: 35.97 kB / 0.8521 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.269e-05/1.353, allocations: 31.98 kB / 0.8521 GB, free: 57.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/1.353, allocations: 4 kB / 0.8521 GB, free: 57.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002419/1.355, allocations: 0.9748 MB / 0.8531 GB, free: 56.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/1.355, allocations: 4 kB / 0.8531 GB, free: 56.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003679/1.356, allocations: 113.4 kB / 0.8532 GB, free: 56.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005633/1.356, allocations: 159.7 kB / 0.8533 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/1.357, allocations: 0.8272 MB / 0.8541 GB, free: 55.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005454/1.358, allocations: 32.05 kB / 0.8542 GB, free: 55.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.615e-05/1.358, allocations: 32.05 kB / 0.8542 GB, free: 55.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000216/1.358, allocations: 127.5 kB / 0.8543 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/1.358, allocations: 63.25 kB / 0.8544 GB, free: 54.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/1.36, allocations: 0.8624 MB / 0.8552 GB, free: 54.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/1.36, allocations: 4 kB / 0.8552 GB, free: 54.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.36, allocations: 4 kB / 0.8552 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/1.36, allocations: 7.891 kB / 0.8552 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/1.363, allocations: 1.594 MB / 0.8568 GB, free: 52.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/1.363, allocations: 4 kB / 0.8568 GB, free: 52.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005043/1.363, allocations: 107.9 kB / 0.8569 GB, free: 52.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004806/1.364, allocations: 172.4 kB / 0.8571 GB, free: 52.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/1.364, allocations: 4 kB / 0.8571 GB, free: 52.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/1.365, allocations: 0.8986 MB / 0.8579 GB, free: 51.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.365, allocations: 3.906 kB / 0.8579 GB, free: 51.23 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002004/1.367, allocations: 1.275 MB / 0.8592 GB, free: 49.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/1.367, allocations: 148.2 kB / 0.8593 GB, free: 49.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/1.367, allocations: 8 kB / 0.8593 GB, free: 49.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004835/1.368, allocations: 27.91 kB / 0.8594 GB, free: 49.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/1.368, allocations: 64.52 kB / 0.8594 GB, free: 49.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-05/1.368, allocations: 23.98 kB / 0.8594 GB, free: 49.63 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003722/1.368, allocations: 346.9 kB / 0.8598 GB, free: 49.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001896/1.37, allocations: 0.5543 MB / 0.8603 GB, free: 48.74 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/1.371, allocations: 0.5931 MB / 0.8609 GB, free: 48.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/1.373, allocations: 1.088 MB / 0.862 GB, free: 47.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.373, allocations: 4.062 kB / 0.862 GB, free: 47.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005109/1.374, allocations: 371.6 kB / 0.8623 GB, free: 46.73 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/1.375, allocations: 290.6 kB / 0.8626 GB, free: 46.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/1.377, allocations: 1.18 MB / 0.8637 GB, free: 45.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005494/1.378, allocations: 1.053 MB / 0.8648 GB, free: 44.15 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/1.378, allocations: 4 kB / 0.8648 GB, free: 44.15 MB / 442.7 MB Notification: Performance of Templates: time 0.03321/1.411, allocations: 21.5 MB / 0.8858 GB, free: 22.86 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches