Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002077/0.002077, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.995/2.995, allocations: 226.5 MB / 245.3 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001596/0.001596, allocations: 96.16 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004304, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6474/0.6479, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.778/2.426, allocations: 323.2 MB / 0.7147 GB, free: 148.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004914/2.427, allocations: 96.81 kB / 0.7148 GB, free: 148.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5208/2.948, allocations: 139.6 MB / 0.8511 GB, free: 7.559 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.458e-06/2.948, allocations: 0 / 0.8511 GB, free: 7.559 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.306e-05/2.948, allocations: 19.98 kB / 0.8511 GB, free: 7.539 MB / 458.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.004339/2.952, allocations: 1.118 MB / 0.8522 GB, free: 6.371 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.06e-05/2.952, allocations: 12.03 kB / 0.8522 GB, free: 6.359 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006116/2.953, allocations: 87.98 kB / 0.8523 GB, free: 6.273 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001878/2.955, allocations: 0.5997 MB / 0.8529 GB, free: 5.633 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.798e-05/2.955, allocations: 41.36 kB / 0.853 GB, free: 5.594 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/2.955, allocations: 44.36 kB / 0.853 GB, free: 5.551 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/2.957, allocations: 0.7463 MB / 0.8537 GB, free: 4.773 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.689e-05/2.957, allocations: 3.938 kB / 0.8537 GB, free: 4.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/2.957, allocations: 23.98 kB / 0.8537 GB, free: 4.746 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.201e-05/2.957, allocations: 40.97 kB / 0.8538 GB, free: 4.707 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/2.959, allocations: 0.6831 MB / 0.8545 GB, free: 4.023 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006524/2.965, allocations: 2.86 MB / 0.8572 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/2.966, allocations: 468.5 kB / 0.8577 GB, free: 0.5117 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/2.967, allocations: 254 kB / 0.8579 GB, free: 268 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6561/3.623, allocations: 337.9 kB / 0.8583 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001051/3.623, allocations: 38.83 kB / 0.8583 GB, free: 103.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 9.117e-06/3.623, allocations: 0 / 0.8583 GB, free: 103.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.0133/3.637, allocations: 2.286 MB / 0.8605 GB, free: 102.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.176e-05/3.637, allocations: 81.2 kB / 0.8606 GB, free: 102.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/3.638, allocations: 0.6103 MB / 0.8612 GB, free: 102.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/3.639, allocations: 42.17 kB / 0.8612 GB, free: 102.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/3.639, allocations: 329.8 kB / 0.8616 GB, free: 102.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/3.639, allocations: 204.5 kB / 0.8618 GB, free: 102.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.775e-05/3.639, allocations: 15.03 kB / 0.8618 GB, free: 102.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/3.64, allocations: 388.1 kB / 0.8621 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007283/3.64, allocations: 284.2 kB / 0.8624 GB, free: 101.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008848/3.641, allocations: 452.2 kB / 0.8628 GB, free: 101.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/3.643, allocations: 0.7033 MB / 0.8635 GB, free: 101.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/3.643, allocations: 3.5 kB / 0.8635 GB, free: 101.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003216/3.646, allocations: 0.9241 MB / 0.8644 GB, free: 101.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003259/3.647, allocations: 228.2 kB / 0.8646 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/3.647, allocations: 4.438 kB / 0.8647 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003279/3.65, allocations: 357.1 kB / 0.865 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/3.651, allocations: 146.9 kB / 0.8651 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/3.653, allocations: 0.8257 MB / 0.8659 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005613/3.658, allocations: 43.61 kB / 0.866 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003185/3.659, allocations: 42.83 kB / 0.866 GB, free: 100.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/3.659, allocations: 3.469 kB / 0.866 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002761/3.662, allocations: 0.7805 MB / 0.8668 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-05/3.662, allocations: 4.812 kB / 0.8668 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/3.664, allocations: 225.3 kB / 0.867 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/3.665, allocations: 159.2 kB / 0.8672 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/3.666, allocations: 0.7012 MB / 0.8678 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/3.668, allocations: 49.38 kB / 0.8679 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/3.668, allocations: 30.41 kB / 0.8679 GB, free: 100.2 MB / 458.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 () * Number of clocked 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.00109/3.669, allocations: 317.1 kB / 0.8682 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005149/3.669, allocations: 75.2 kB / 0.8683 GB, free: 99.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003568/3.673, allocations: 0.837 MB / 0.8691 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/3.673, allocations: 7.812 kB / 0.8691 GB, free: 99.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/3.673, allocations: 3.906 kB / 0.8691 GB, free: 99.89 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/3.673, allocations: 7.141 kB / 0.8691 GB, free: 99.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007123/3.68, allocations: 1.66 MB / 0.8708 GB, free: 99.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/3.68, allocations: 1.266 kB / 0.8708 GB, free: 99.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008616/3.681, allocations: 108.5 kB / 0.8709 GB, free: 99.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/3.684, allocations: 339.2 kB / 0.8712 GB, free: 99.54 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/3.684, allocations: 14.98 kB / 0.8712 GB, free: 99.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/3.685, allocations: 0.8084 MB / 0.872 GB, free: 99.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/3.685, allocations: 4.594 kB / 0.872 GB, free: 99.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/3.689, allocations: 1.232 MB / 0.8732 GB, free: 98.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007498/3.69, allocations: 155.3 kB / 0.8733 GB, free: 98.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004138/3.69, allocations: 18.31 kB / 0.8734 GB, free: 98.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/3.691, allocations: 42.89 kB / 0.8734 GB, free: 98.67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/3.692, allocations: 49.03 kB / 0.8734 GB, free: 98.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/3.692, allocations: 32.92 kB / 0.8735 GB, free: 98.67 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001428/3.693, allocations: 436.8 kB / 0.8739 GB, free: 98.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/3.693, allocations: 0 / 0.8739 GB, free: 98.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004314/3.698, allocations: 0.5973 MB / 0.8745 GB, free: 98.57 MB / 458.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]) * Number of clocked states: 0 () * 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.003671/3.701, allocations: 0.6068 MB / 0.8751 GB, free: 98.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004328/3.706, allocations: 1.125 MB / 0.8762 GB, free: 98.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/3.706, allocations: 0 / 0.8762 GB, free: 98.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/3.707, allocations: 377.3 kB / 0.8765 GB, free: 98.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003933/3.711, allocations: 342.8 kB / 0.8769 GB, free: 98.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006405/3.718, allocations: 1.894 MB / 0.8787 GB, free: 97.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/3.719, allocations: 0.9586 MB / 0.8796 GB, free: 97.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006295/3.719, allocations: 71.97 kB / 0.8797 GB, free: 97.01 MB / 458.7 MB Notification: Performance of SimCode: time 6.022e-06/3.719, allocations: 2.375 kB / 0.8797 GB, free: 97.01 MB / 458.7 MB Notification: Performance of Templates: time 0.06174/3.781, allocations: 17.97 MB / 0.8973 GB, free: 96.17 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches