Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_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_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 194 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 226.6 MB / 244.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008197/0.0008198, allocations: 98.73 kB / 296.8 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002379/0.000238, allocations: 8 kB / 356.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1944, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.001994/0.1965, allocations: 2.348 MB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1975, allocations: 0.7453 MB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1977, allocations: 7.938 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.198, allocations: 52.77 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.1983, allocations: 112.6 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.1984, allocations: 75.09 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.1988, allocations: 394.4 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.199, allocations: 95.3 kB / 411.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.1991, allocations: 147 kB / 412 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.1993, allocations: 159.4 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.775e-05/0.1994, allocations: 24 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.91e-05/0.1994, allocations: 20 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.594e-05/0.1995, allocations: 67.69 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.1996, allocations: 196.9 kB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.1998, allocations: 320 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1999, allocations: 0 / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1999, allocations: 0 / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1999, allocations: 0 / 412.8 MB, free: 22.95 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.000796/0.2007, allocations: 0.6228 MB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2007, allocations: 8.031 kB / 413.4 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.793e-05/0.2008, allocations: 40.56 kB / 413.4 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002816/0.2011, allocations: 299.4 kB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-05/0.2012, allocations: 54.69 kB / 413.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.2012, allocations: 24.38 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.2016, allocations: 325.6 kB / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2017, allocations: 0 / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.2017, allocations: 8 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2017, allocations: 7.984 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003513/0.2021, allocations: 209.6 kB / 414.3 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.2032, allocations: 0.8143 MB / 415.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.2037, allocations: 278.9 kB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.2039, allocations: 120.9 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.2039, allocations: 4 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.204, allocations: 46.58 kB / 415.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.402e-06/0.204, allocations: 0 / 415.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008492/0.2048, allocations: 496.1 kB / 416.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.2049, allocations: 312.4 kB / 416.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.2051, allocations: 283 kB / 416.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.2051, allocations: 33.7 kB / 416.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.372e-05/0.2052, allocations: 164.7 kB / 416.9 MB, free: 18.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.21e-05/0.2053, allocations: 110.5 kB / 417 MB, free: 18.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.633e-05/0.2053, allocations: 15.94 kB / 417 MB, free: 18.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.51e-05/0.2053, allocations: 334.8 kB / 417.3 MB, free: 18.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.2055, allocations: 99.7 kB / 417.4 MB, free: 17.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.2058, allocations: 212.8 kB / 417.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.2061, allocations: 276.3 kB / 417.9 MB, free: 17.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2062, allocations: 96 / 417.9 MB, free: 17.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005275/0.2067, allocations: 377.6 kB / 418.2 MB, free: 17.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.2067, allocations: 37.69 kB / 418.3 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2067, allocations: 3.984 kB / 418.3 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.2069, allocations: 40.78 kB / 418.3 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009709/0.2079, allocations: 199.9 kB / 418.5 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/0.2105, allocations: 3.07 MB / 421.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.2108, allocations: 39.81 kB / 421.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.2108, allocations: 8 kB / 421.6 MB, free: 13.37 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.0001394/0.211, allocations: 157.8 kB / 421.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.211, allocations: 39.56 kB / 421.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.03e-05/0.2111, allocations: 35.08 kB / 421.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2111, allocations: 4 kB / 421.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.2111, allocations: 0 / 421.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000472/0.2116, allocations: 0.6705 MB / 422.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000341/0.212, allocations: 381.1 kB / 422.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.212, allocations: 4 kB / 422.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.2132, allocations: 247.8 kB / 423.2 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.21e-05/0.2133, allocations: 32.72 kB / 423.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.2133, allocations: 4 kB / 423.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.2154, allocations: 2.895 MB / 426.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2154, allocations: 0 / 426.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006743/0.2161, allocations: 0.5233 MB / 426.6 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.2162, allocations: 128.7 kB / 426.7 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.2163, allocations: 12 kB / 426.8 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.2165, allocations: 23.89 kB / 426.8 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.2166, allocations: 27.95 kB / 426.8 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.2166, allocations: 4 kB / 426.8 MB, free: 7.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001456/0.2168, allocations: 201.9 kB / 427 MB, free: 7.531 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2168, allocations: 3.938 kB / 427 MB, free: 7.527 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003698/0.2172, allocations: 103.9 kB / 427.1 MB, free: 7.426 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.0001146/0.2173, allocations: 113.6 kB / 427.2 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.2186, allocations: 0.5918 MB / 427.8 MB, free: 6.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2186, allocations: 4 kB / 427.8 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.2198, allocations: 438.3 kB / 428.2 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.2203, allocations: 80.55 kB / 428.3 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.2218, allocations: 1.057 MB / 429.4 MB, free: 5.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.222, allocations: 0.7838 MB / 430.2 MB, free: 4.266 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.822e-05/0.222, allocations: 31.44 kB / 430.2 MB, free: 4.234 MB / 298.7 MB Notification: Performance of SimCode: time 7.02e-07/0.2221, allocations: 0 / 430.2 MB, free: 4.234 MB / 298.7 MB Notification: Performance of Templates: time 0.008228/0.2303, allocations: 6.749 MB / 436.9 MB, free: 13.53 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches