Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 104.3 kB / 17.73 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 55.92 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004206/0.1179, allocations: 2.749 MB / 377.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1194, allocations: 0.8652 MB / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.1196, allocations: 0 / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003044/0.1199, allocations: 71.41 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003418/0.1202, allocations: 134.9 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.1205, allocations: 91.81 kB / 379 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005217/0.121, allocations: 434.4 kB / 379.5 MB, free: 244 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.1212, allocations: 111.2 kB / 379.6 MB, free: 132 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2555/0.3767, allocations: 159.1 kB / 379.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000471/0.3772, allocations: 180.2 kB / 379.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.3774, allocations: 34.81 kB / 379.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.967e-05/0.3774, allocations: 34.53 kB / 380 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.859e-05/0.3775, allocations: 79.16 kB / 380 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002514/0.3778, allocations: 186.6 kB / 380.2 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005872/0.3784, allocations: 445.7 kB / 380.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3784, allocations: 3.938 kB / 380.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3784, allocations: 3.625 kB / 380.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.3784, allocations: 0 / 380.7 MB, free: 9.785 MB / 318.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.001273/0.3797, allocations: 0.6742 MB / 381.3 MB, free: 9.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.3798, allocations: 14.09 kB / 381.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.3799, allocations: 39.75 kB / 381.4 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005962/0.3805, allocations: 307.7 kB / 381.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.3807, allocations: 51.2 kB / 381.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.329e-05/0.3807, allocations: 22.06 kB / 381.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/0.3814, allocations: 324.2 kB / 382.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.3815, allocations: 1.375 kB / 382.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/0.3815, allocations: 12.31 kB / 382.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.3815, allocations: 5.5 kB / 382.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006216/0.3822, allocations: 203.7 kB / 382.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.3843, allocations: 0.7859 MB / 383.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006879/0.385, allocations: 279.8 kB / 383.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.3852, allocations: 118.9 kB / 383.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.3853, allocations: 7.312 kB / 383.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.3853, allocations: 37.56 kB / 383.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.413e-06/0.3853, allocations: 1.062 kB / 383.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001082/0.3864, allocations: 492 kB / 384 MB, free: 8.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.3865, allocations: 314.1 kB / 384.3 MB, free: 7.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.3869, allocations: 283.2 kB / 384.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.3869, allocations: 31.73 kB / 384.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.387, allocations: 171 kB / 384.8 MB, free: 7.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.212e-05/0.3871, allocations: 111.3 kB / 384.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.3873, allocations: 67.5 kB / 385 MB, free: 7.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3874, allocations: 341.9 kB / 385.3 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.3876, allocations: 94 kB / 385.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.3879, allocations: 210.9 kB / 385.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.3883, allocations: 259.3 kB / 385.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3883, allocations: 7.938 kB / 385.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005998/0.3889, allocations: 369.3 kB / 386.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.389, allocations: 32.38 kB / 386.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.389, allocations: 0.875 kB / 386.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001677/0.3892, allocations: 36.53 kB / 386.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.3902, allocations: 166 kB / 386.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.3933, allocations: 3.221 MB / 389.7 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.3936, allocations: 39.92 kB / 389.7 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.3937, allocations: 12.56 kB / 389.7 MB, free: 3.75 MB / 318.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.000145/0.3938, allocations: 157 kB / 389.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.902e-05/0.3939, allocations: 33.67 kB / 389.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.749e-05/0.394, allocations: 37.92 kB / 389.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.394, allocations: 3.406 kB / 389.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.394, allocations: 0 / 389.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005822/0.3946, allocations: 0.6563 MB / 390.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004455/0.395, allocations: 389.5 kB / 391 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.3951, allocations: 1.5 kB / 391 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.3964, allocations: 210.6 kB / 391.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.59e-05/0.3965, allocations: 21.44 kB / 391.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.3965, allocations: 7.516 kB / 391.2 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002888/0.3994, allocations: 3.039 MB / 394.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3994, allocations: 0.5156 kB / 394.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009852/0.4004, allocations: 0.518 MB / 394.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/0.4006, allocations: 138.6 kB / 394.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.976e-05/0.4007, allocations: 7.094 kB / 394.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.4009, allocations: 15.98 kB / 394.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.4011, allocations: 22.27 kB / 395 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.4011, allocations: 10.97 kB / 395 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.4014, allocations: 204 kB / 395.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4014, allocations: 0 / 395.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004536/0.4018, allocations: 103.8 kB / 395.3 MB, free: 15.16 MB / 334.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.0001765/0.402, allocations: 121.7 kB / 395.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.4036, allocations: 0.5275 MB / 395.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4037, allocations: 1.312 kB / 395.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001428/0.4051, allocations: 409.8 kB / 396.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.4057, allocations: 86.88 kB / 396.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.4076, allocations: 0.8488 MB / 397.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.408, allocations: 0.7751 MB / 398 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.4082, allocations: 34.53 kB / 398.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.788e-05/0.4083, allocations: 28.56 kB / 398.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4083, allocations: 1.688 kB / 398.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of Templates: time 0.01486/0.4231, allocations: 6.264 MB / 404.3 MB, free: 11.88 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches