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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009944/0.0009945, allocations: 187 kB / 17.92 MB, free: 3.855 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.133/1.133, allocations: 205.1 MB / 223.7 MB, free: 8.477 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.0008803/0.0008803, allocations: 106 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007887/0.0007888, allocations: 39.94 kB / 327.2 MB, free: 344 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1948, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002949/0.1978, allocations: 2.797 MB / 376.6 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009651/0.1988, allocations: 0.8654 MB / 377.5 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1989, allocations: 6.156 kB / 377.5 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.1991, allocations: 58.05 kB / 377.5 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.1993, allocations: 123.8 kB / 377.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.1995, allocations: 79.08 kB / 377.7 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.1999, allocations: 415.3 kB / 378.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.2, allocations: 97.36 kB / 378.2 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.2001, allocations: 145.1 kB / 378.4 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.2003, allocations: 171.5 kB / 378.5 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.109e-05/0.2004, allocations: 23.25 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.893e-05/0.2004, allocations: 23.5 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.906e-05/0.2005, allocations: 64.86 kB / 378.7 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.2006, allocations: 186 kB / 378.8 MB, free: 42.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.2009, allocations: 428.2 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2009, allocations: 0 / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.2009, allocations: 0 / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2009, allocations: 1.125 kB / 379.3 MB, free: 41.71 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.0008788/0.2018, allocations: 0.6763 MB / 379.9 MB, free: 41.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2019, allocations: 9.062 kB / 379.9 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.566e-05/0.2019, allocations: 46.73 kB / 380 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.2022, allocations: 295.6 kB / 380.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.558e-05/0.2023, allocations: 47.7 kB / 380.3 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.2024, allocations: 26.86 kB / 380.3 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003897/0.2028, allocations: 318.7 kB / 380.7 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.2028, allocations: 1.438 kB / 380.7 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.2028, allocations: 10.56 kB / 380.7 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2028, allocations: 5.188 kB / 380.7 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003638/0.2032, allocations: 209.4 kB / 380.9 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.2043, allocations: 0.8061 MB / 381.7 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.2048, allocations: 276.8 kB / 382 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.205, allocations: 116 kB / 382.1 MB, free: 39.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.205, allocations: 3.781 kB / 382.1 MB, free: 39.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.205, allocations: 41.28 kB / 382.1 MB, free: 39.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.353e-06/0.205, allocations: 1.062 kB / 382.1 MB, free: 39.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008975/0.2059, allocations: 484.2 kB / 382.6 MB, free: 39.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.206, allocations: 320.7 kB / 382.9 MB, free: 38.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.2062, allocations: 281.6 kB / 383.2 MB, free: 38.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.2062, allocations: 33.23 kB / 383.2 MB, free: 38.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.2063, allocations: 159.8 kB / 383.4 MB, free: 38.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.2064, allocations: 115 kB / 383.5 MB, free: 38.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.098e-05/0.2065, allocations: 73.91 kB / 383.5 MB, free: 38.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.93e-05/0.2065, allocations: 337.3 kB / 383.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.2067, allocations: 92.7 kB / 384 MB, free: 37.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.207, allocations: 214.2 kB / 384.2 MB, free: 37.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.2073, allocations: 268.1 kB / 384.4 MB, free: 37.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2074, allocations: 9.031 kB / 384.4 MB, free: 37.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005334/0.2079, allocations: 368.1 kB / 384.8 MB, free: 37.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.2079, allocations: 37.64 kB / 384.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.2079, allocations: 1.156 kB / 384.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.2081, allocations: 36.38 kB / 384.9 MB, free: 37.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008963/0.209, allocations: 162.8 kB / 385 MB, free: 37.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.2115, allocations: 2.987 MB / 388 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.2117, allocations: 43.69 kB / 388.1 MB, free: 34.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.2118, allocations: 8.125 kB / 388.1 MB, free: 34.26 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 (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.0001211/0.2119, allocations: 152.8 kB / 388.2 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.212, allocations: 45.58 kB / 388.3 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.804e-05/0.212, allocations: 37.73 kB / 388.3 MB, free: 34.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.212, allocations: 3.5 kB / 388.3 MB, free: 34.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.2121, allocations: 0 / 388.3 MB, free: 34.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004848/0.2125, allocations: 0.6592 MB / 389 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.2129, allocations: 379.3 kB / 389.3 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2129, allocations: 0 / 389.3 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.2141, allocations: 214.3 kB / 389.6 MB, free: 32.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.167e-05/0.2141, allocations: 24.8 kB / 389.6 MB, free: 32.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.2141, allocations: 11.98 kB / 389.6 MB, free: 32.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/0.2162, allocations: 2.817 MB / 392.4 MB, free: 29.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2162, allocations: 0 / 392.4 MB, free: 29.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005326/0.2215, allocations: 4.105 MB / 396.5 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.582e-05/0.2216, allocations: 132.8 kB / 396.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/0.2217, allocations: 8 kB / 396.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.2219, allocations: 19.89 kB / 396.7 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.222, allocations: 27.91 kB / 396.7 MB, free: 25.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.222, allocations: 11.98 kB / 396.7 MB, free: 25.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.2221, allocations: 198 kB / 396.9 MB, free: 25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2221, allocations: 4.062 kB / 396.9 MB, free: 24.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004492/0.2226, allocations: 143.9 kB / 397 MB, free: 24.85 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 (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 9.213e-05/0.2227, allocations: 103.5 kB / 397.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.2239, allocations: 0.5413 MB / 397.7 MB, free: 24.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2239, allocations: 0 / 397.7 MB, free: 24.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.2251, allocations: 398.4 kB / 398.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.2256, allocations: 92.36 kB / 398.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.2271, allocations: 1.288 MB / 399.5 MB, free: 22.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.2272, allocations: 0.7801 MB / 400.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.2274, allocations: 38.95 kB / 400.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.706e-05/0.2274, allocations: 27.44 kB / 400.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2274, allocations: 0 / 400.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of Templates: time 0.008002/0.2354, allocations: 6.793 MB / 407.1 MB, free: 14.71 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches