Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009367/0.0009366, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 205.4 MB / 223.6 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000718/0.000718, allocations: 90.36 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003098, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2175, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.3311, allocations: 80.09 MB / 455.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.3314, allocations: 67.97 kB / 455.9 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01574/0.3471, allocations: 6.158 MB / 462 MB, free: 10.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3471, allocations: 0 / 462 MB, free: 10.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.3472, allocations: 8 kB / 462 MB, free: 10.26 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.000915/0.3481, allocations: 0.625 MB / 462.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3481, allocations: 12.03 kB / 462.7 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.462e-05/0.3482, allocations: 36.56 kB / 462.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3486, allocations: 299.4 kB / 463 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.3487, allocations: 58.67 kB / 463.1 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.3488, allocations: 24.28 kB / 463.1 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000545/0.3493, allocations: 328.2 kB / 463.4 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3494, allocations: 3.938 kB / 463.4 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.3494, allocations: 12 kB / 463.4 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.3494, allocations: 4 kB / 463.4 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004217/0.3499, allocations: 209.6 kB / 463.6 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.3512, allocations: 0.7993 MB / 464.4 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005522/0.3518, allocations: 291.4 kB / 464.7 MB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.352, allocations: 124.8 kB / 464.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.573e-05/0.352, allocations: 11.94 kB / 464.8 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.3521, allocations: 38.56 kB / 464.9 MB, free: 7.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.3521, allocations: 0 / 464.9 MB, free: 7.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001012/0.3531, allocations: 492.4 kB / 465.4 MB, free: 6.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.3533, allocations: 316.4 kB / 465.7 MB, free: 6.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.3536, allocations: 286.9 kB / 465.9 MB, free: 6.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.3536, allocations: 29.7 kB / 466 MB, free: 5.988 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3537, allocations: 172.6 kB / 466.1 MB, free: 5.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.3538, allocations: 110.5 kB / 466.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.3538, allocations: 4 kB / 466.3 MB, free: 5.703 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.354, allocations: 338.8 kB / 466.6 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.3542, allocations: 95.95 kB / 466.7 MB, free: 5.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.3545, allocations: 212.4 kB / 466.9 MB, free: 5.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004482/0.3549, allocations: 274.7 kB / 467.2 MB, free: 4.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3549, allocations: 3.938 kB / 467.2 MB, free: 4.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006098/0.3556, allocations: 381.6 kB / 467.5 MB, free: 4.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.3556, allocations: 29.7 kB / 467.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3556, allocations: 0 / 467.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001536/0.3558, allocations: 36.84 kB / 467.6 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009823/0.3568, allocations: 203.9 kB / 467.8 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.3602, allocations: 3.074 MB / 470.9 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.3604, allocations: 35.81 kB / 470.9 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.3605, allocations: 12 kB / 470.9 MB, free: 0.6797 MB / 346.7 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 (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.0001732/0.3606, allocations: 153.7 kB / 471.1 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/0.3607, allocations: 35.62 kB / 471.1 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.594e-05/0.3608, allocations: 39.02 kB / 471.1 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3608, allocations: 7.984 kB / 471.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3608, allocations: 0 / 471.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007128/0.3615, allocations: 0.6659 MB / 471.8 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/0.362, allocations: 389.2 kB / 472.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.362, allocations: 0 / 472.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.3633, allocations: 255.7 kB / 472.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.439e-05/0.3633, allocations: 25.03 kB / 472.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.3634, allocations: 11.94 kB / 472.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002942/0.3663, allocations: 2.899 MB / 475.4 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3663, allocations: 0 / 475.4 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008459/0.3672, allocations: 0.5233 MB / 475.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.3674, allocations: 136.7 kB / 476 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.3674, allocations: 8 kB / 476 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.3676, allocations: 19.98 kB / 476.1 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.723e-05/0.3677, allocations: 23.97 kB / 476.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.3677, allocations: 8.094 kB / 476.1 MB, free: 11.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002153/0.368, allocations: 205.8 kB / 476.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.368, allocations: 0 / 476.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00045/0.3684, allocations: 115.8 kB / 476.4 MB, free: 10.71 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 () * 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 (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.0002082/0.3686, allocations: 115.2 kB / 476.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.3702, allocations: 0.5877 MB / 477.1 MB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3702, allocations: 3.938 kB / 477.1 MB, free: 9.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.3716, allocations: 454.8 kB / 477.6 MB, free: 9.512 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005997/0.3722, allocations: 82.25 kB / 477.6 MB, free: 9.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002008/0.3742, allocations: 1.056 MB / 478.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.3745, allocations: 0.78 MB / 479.5 MB, free: 7.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.3746, allocations: 35.44 kB / 479.5 MB, free: 7.508 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3746, allocations: 0 / 479.5 MB, free: 7.508 MB / 362.7 MB Notification: Performance of Templates: time 0.008762/0.3834, allocations: 6.732 MB / 486.2 MB, free: 0.8008 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches