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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001454/0.001454, allocations: 114 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001858/0.001858, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 63.73 kB / 306.4 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.117, allocations: 50.53 MB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003616/0.1206, allocations: 2.807 MB / 359.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1218, allocations: 0.8452 MB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.122, allocations: 4 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002722/0.1223, allocations: 67.52 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000263/0.1225, allocations: 111.1 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.1227, allocations: 87.91 kB / 360.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004662/0.1232, allocations: 426.4 kB / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1234, allocations: 107.2 kB / 361.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.1236, allocations: 163.4 kB / 361.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1238, allocations: 179.2 kB / 361.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.1239, allocations: 36 kB / 361.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.974e-05/0.1239, allocations: 36 kB / 361.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.124, allocations: 79.67 kB / 361.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000179/0.1242, allocations: 191.1 kB / 362.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.1246, allocations: 430.8 kB / 362.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1246, allocations: 0 / 362.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.421e-06/0.1246, allocations: 4 kB / 362.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.1246, allocations: 3.938 kB / 362.5 MB, free: 8.645 MB / 302.1 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.001075/0.1257, allocations: 0.6794 MB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.1257, allocations: 8.031 kB / 363.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.059e-05/0.1258, allocations: 44.56 kB / 363.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.1262, allocations: 299.4 kB / 363.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.748e-05/0.1263, allocations: 46.69 kB / 363.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.1263, allocations: 32.28 kB / 363.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.1268, allocations: 317.6 kB / 363.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1269, allocations: 4 kB / 363.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.1269, allocations: 12 kB / 363.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.1269, allocations: 4 kB / 363.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004048/0.1273, allocations: 205.6 kB / 364.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.1287, allocations: 0.7987 MB / 364.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/0.1292, allocations: 272.1 kB / 365.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.1294, allocations: 124.8 kB / 365.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.1295, allocations: 7.938 kB / 365.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.1295, allocations: 42.56 kB / 365.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.1295, allocations: 0 / 365.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009912/0.1305, allocations: 479.1 kB / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.1307, allocations: 320.4 kB / 366.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.131, allocations: 279 kB / 366.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.131, allocations: 33.7 kB / 366.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1311, allocations: 180.6 kB / 366.6 MB, free: 4.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.171e-05/0.1312, allocations: 94.56 kB / 366.7 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.1313, allocations: 65.7 kB / 366.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1315, allocations: 342.8 kB / 367.1 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.1317, allocations: 95.7 kB / 367.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.132, allocations: 204.2 kB / 367.4 MB, free: 3.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.1324, allocations: 271.4 kB / 367.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1324, allocations: 3.938 kB / 367.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006181/0.1331, allocations: 365.6 kB / 368 MB, free: 2.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.1331, allocations: 33.7 kB / 368.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1331, allocations: 4.094 kB / 368.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.1333, allocations: 44.83 kB / 368.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.1343, allocations: 155.8 kB / 368.3 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1521/0.2864, allocations: 3.232 MB / 371.5 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.2868, allocations: 37.94 kB / 371.5 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.2869, allocations: 8.5 kB / 371.6 MB, free: 18.88 MB / 302.1 MB 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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001958/0.2871, allocations: 157.2 kB / 371.7 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/0.2871, allocations: 37.28 kB / 371.7 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.799e-05/0.2872, allocations: 40.44 kB / 371.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.2872, allocations: 3.844 kB / 371.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2872, allocations: 2.953 kB / 371.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005666/0.2878, allocations: 0.649 MB / 372.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.2883, allocations: 389.6 kB / 372.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2883, allocations: 4.219 kB / 372.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.2896, allocations: 205.5 kB / 373 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.612e-05/0.2897, allocations: 25.38 kB / 373 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.2897, allocations: 5.484 kB / 373.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.2923, allocations: 3.034 MB / 376.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2923, allocations: 0 / 376.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007651/0.293, allocations: 0.5125 MB / 376.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.2932, allocations: 137.5 kB / 376.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.2932, allocations: 8.516 kB / 376.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/0.2935, allocations: 16.8 kB / 376.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-05/0.2936, allocations: 26.27 kB / 376.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.2936, allocations: 12.77 kB / 376.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001975/0.2938, allocations: 199.9 kB / 377 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2939, allocations: 0 / 377 MB, free: 14.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004373/0.2943, allocations: 100.3 kB / 377.1 MB, free: 14.88 MB / 302.1 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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001607/0.2945, allocations: 118.7 kB / 377.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.2962, allocations: 0.5508 MB / 377.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2962, allocations: 3.625 kB / 377.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.2977, allocations: 408.8 kB / 378.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.2984, allocations: 99.28 kB / 378.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.3, allocations: 0.9514 MB / 379.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.3002, allocations: 0.7767 MB / 380 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.3004, allocations: 37.75 kB / 380 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.036e-05/0.3004, allocations: 32.44 kB / 380.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3004, allocations: 0 / 380.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01081/0.3113, allocations: 6.11 MB / 386.2 MB, free: 11.95 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches