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.0009042/0.0009042, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.364/1.364, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007127/0.0007127, allocations: 89.44 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002948, allocations: 11.98 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1951, allocations: 47.58 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00204/0.1972, allocations: 2.338 MB / 376.9 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009211/0.1981, allocations: 0.7576 MB / 377.6 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.1983, allocations: 6.062 kB / 377.6 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.1985, allocations: 46.14 kB / 377.7 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.1987, allocations: 124.6 kB / 377.8 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001535/0.1989, allocations: 62.33 kB / 377.9 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.1992, allocations: 384.7 kB / 378.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.1993, allocations: 90.42 kB / 378.3 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.1995, allocations: 140.8 kB / 378.5 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.1997, allocations: 161.3 kB / 378.6 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.1997, allocations: 22.59 kB / 378.7 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.031e-05/0.1998, allocations: 22.38 kB / 378.7 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.52e-05/0.1998, allocations: 61.38 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.677e-05/0.1999, allocations: 91.61 kB / 378.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.2001, allocations: 319.5 kB / 379.1 MB, free: 41.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.2002, allocations: 4 kB / 379.1 MB, free: 41.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2002, allocations: 0 / 379.1 MB, free: 41.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2002, allocations: 1.156 kB / 379.1 MB, free: 41.96 MB / 298.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.0008481/0.201, allocations: 0.6163 MB / 379.8 MB, free: 41.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.2011, allocations: 9.094 kB / 379.8 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.2012, allocations: 38.78 kB / 379.8 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.2014, allocations: 293.4 kB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.424e-05/0.2015, allocations: 53.41 kB / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.2016, allocations: 22.12 kB / 380.2 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004488/0.202, allocations: 325 kB / 380.5 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2021, allocations: 3.938 kB / 380.5 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.2021, allocations: 12.34 kB / 380.5 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2021, allocations: 9.406 kB / 380.5 MB, free: 40.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.2025, allocations: 206 kB / 380.7 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.2037, allocations: 0.8084 MB / 381.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005063/0.2042, allocations: 294.9 kB / 381.8 MB, free: 39.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.2044, allocations: 131 kB / 381.9 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.2045, allocations: 6.703 kB / 381.9 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.2045, allocations: 42.39 kB / 382 MB, free: 39.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.2045, allocations: 0 / 382 MB, free: 39.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.00094/0.2054, allocations: 486.4 kB / 382.5 MB, free: 39.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.2055, allocations: 316.9 kB / 382.8 MB, free: 39.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.2058, allocations: 287.6 kB / 383.1 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.2058, allocations: 32.48 kB / 383.1 MB, free: 38.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.673e-05/0.2059, allocations: 164.6 kB / 383.2 MB, free: 38.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.585e-05/0.2059, allocations: 107.7 kB / 383.3 MB, free: 38.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.206, allocations: 5.125 kB / 383.4 MB, free: 38.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.614e-05/0.206, allocations: 342.4 kB / 383.7 MB, free: 38.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.2062, allocations: 98.2 kB / 383.8 MB, free: 38.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.2065, allocations: 216.3 kB / 384 MB, free: 38.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/0.2067, allocations: 146.5 kB / 384.1 MB, free: 37.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2067, allocations: 1.25 kB / 384.1 MB, free: 37.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005548/0.2073, allocations: 374 kB / 384.5 MB, free: 37.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.2073, allocations: 30.83 kB / 384.5 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2073, allocations: 5.281 kB / 384.5 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/0.2075, allocations: 39.28 kB / 384.6 MB, free: 37.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.2085, allocations: 201.7 kB / 384.8 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/0.2113, allocations: 3.071 MB / 387.8 MB, free: 34.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.2116, allocations: 45.22 kB / 387.9 MB, free: 34.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.2116, allocations: 11 kB / 387.9 MB, free: 34.65 MB / 298.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.0001474/0.2118, allocations: 148.5 kB / 388 MB, free: 34.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.249e-05/0.2119, allocations: 33.75 kB / 388.1 MB, free: 34.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.359e-05/0.2119, allocations: 37.48 kB / 388.1 MB, free: 34.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.2119, allocations: 3.281 kB / 388.1 MB, free: 34.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2119, allocations: 1.188 kB / 388.1 MB, free: 34.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005543/0.2125, allocations: 0.6767 MB / 388.8 MB, free: 33.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003194/0.2128, allocations: 385.2 kB / 389.2 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2128, allocations: 3.938 kB / 389.2 MB, free: 33.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.2141, allocations: 255.7 kB / 389.4 MB, free: 33.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-05/0.2142, allocations: 20.86 kB / 389.4 MB, free: 33.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.2142, allocations: 8.078 kB / 389.5 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.2165, allocations: 2.898 MB / 392.4 MB, free: 29.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2165, allocations: 7.938 kB / 392.4 MB, free: 29.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006906/0.2172, allocations: 0.5233 MB / 392.9 MB, free: 29.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.2173, allocations: 140.7 kB / 393 MB, free: 29.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.2174, allocations: 8 kB / 393 MB, free: 29.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.2176, allocations: 15.98 kB / 393 MB, free: 29.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.2177, allocations: 23.97 kB / 393.1 MB, free: 29.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.2177, allocations: 7.953 kB / 393.1 MB, free: 29.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001426/0.2179, allocations: 206 kB / 393.3 MB, free: 28.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2179, allocations: 0 / 393.3 MB, free: 28.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003741/0.2183, allocations: 103.8 kB / 393.4 MB, free: 28.84 MB / 298.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.0001033/0.2184, allocations: 115.2 kB / 393.5 MB, free: 28.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.2197, allocations: 0.5761 MB / 394.1 MB, free: 28.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2198, allocations: 0 / 394.1 MB, free: 28.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.2211, allocations: 442.8 kB / 394.5 MB, free: 27.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.2216, allocations: 92.38 kB / 394.6 MB, free: 27.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.223, allocations: 1.063 MB / 395.7 MB, free: 26.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.2232, allocations: 0.7723 MB / 396.4 MB, free: 25.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.182e-05/0.2233, allocations: 35.36 kB / 396.5 MB, free: 25.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2233, allocations: 0 / 396.5 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Templates: time 0.006386/0.2297, allocations: 6.76 MB / 403.2 MB, free: 18.91 MB / 298.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/jenkins/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