Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009367/0.0009411, allocations: 183.1 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 225.7 MB / 243.2 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007737/0.000774, allocations: 94.52 kB / 294.4 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.000307, allocations: 11.94 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1869, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003083/0.19, allocations: 4.403 MB / 409 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.1916, allocations: 1.434 MB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002414/0.1919, allocations: 11.94 kB / 410.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002732/0.1922, allocations: 127.1 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004389/0.1926, allocations: 285.7 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.1929, allocations: 199.7 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006666/0.1936, allocations: 1.125 MB / 412.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.1939, allocations: 293.8 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.1942, allocations: 406.4 kB / 412.8 MB, free: 23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.1945, allocations: 473.9 kB / 413.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-05/0.1946, allocations: 64 kB / 413.4 MB, free: 22.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1948, allocations: 68 kB / 413.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1949, allocations: 187.2 kB / 413.6 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003682/0.1953, allocations: 0.4993 MB / 414.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005992/0.1959, allocations: 1.13 MB / 415.2 MB, free: 20.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1959, allocations: 4 kB / 415.2 MB, free: 20.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1959, allocations: 0 / 415.2 MB, free: 20.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.1959, allocations: 0 / 415.2 MB, free: 20.57 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001635/0.1975, allocations: 1.19 MB / 416.4 MB, free: 19.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.1976, allocations: 12.03 kB / 416.4 MB, free: 19.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1977, allocations: 103.8 kB / 416.5 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006485/0.1984, allocations: 0.5949 MB / 417.1 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/0.1986, allocations: 178.9 kB / 417.3 MB, free: 18.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.646e-05/0.1987, allocations: 64.11 kB / 417.4 MB, free: 18.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.1998, allocations: 0.8704 MB / 418.2 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.1999, allocations: 4 kB / 418.2 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.408e-05/0.1999, allocations: 31.92 kB / 418.3 MB, free: 17.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1999, allocations: 20 kB / 418.3 MB, free: 17.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.2012, allocations: 0.6571 MB / 419 MB, free: 16.62 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.2036, allocations: 2.069 MB / 421 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.2047, allocations: 0.8939 MB / 421.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006895/0.2054, allocations: 430.5 kB / 422.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.2055, allocations: 8.656 kB / 422.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.2055, allocations: 51.2 kB / 422.4 MB, free: 13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.064e-06/0.2055, allocations: 0 / 422.4 MB, free: 13 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004539/0.2101, allocations: 1.996 MB / 424.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.2102, allocations: 0.8234 MB / 425.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005596/0.2108, allocations: 0.6215 MB / 425.8 MB, free: 9.262 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.2108, allocations: 45.7 kB / 425.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.211, allocations: 337 kB / 426.2 MB, free: 8.875 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.2112, allocations: 256.2 kB / 426.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.2112, allocations: 12 kB / 426.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.333e-05/0.2113, allocations: 382.8 kB / 426.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005987/0.2119, allocations: 305.8 kB / 427.1 MB, free: 7.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007297/0.2126, allocations: 0.578 MB / 427.7 MB, free: 7.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.2138, allocations: 0.748 MB / 428.5 MB, free: 6.477 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2138, allocations: 0 / 428.5 MB, free: 6.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002351/0.2162, allocations: 1.204 MB / 429.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.2162, allocations: 85.09 kB / 429.8 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2162, allocations: 0 / 429.8 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005763/0.2168, allocations: 243.3 kB / 430 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/0.2174, allocations: 155.8 kB / 430.1 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005876/0.2233, allocations: 6.478 MB / 436.6 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008722/0.2242, allocations: 127.3 kB / 436.7 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.2243, allocations: 20 kB / 436.8 MB, free: 13.58 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 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): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003118/0.2246, allocations: 225.7 kB / 437 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.2247, allocations: 86.97 kB / 437.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.2249, allocations: 91.33 kB / 437.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2249, allocations: 8 kB / 437.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.2249, allocations: 4.125 kB / 437.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002432/0.2273, allocations: 1.342 MB / 438.5 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003622/0.231, allocations: 2.027 MB / 440.5 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.231, allocations: 0 / 440.5 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/0.2317, allocations: 147.8 kB / 440.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005317/0.2323, allocations: 222.7 kB / 440.9 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.358e-05/0.2323, allocations: 12 kB / 440.9 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005751/0.2381, allocations: 5.059 MB / 446 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2381, allocations: 4.031 kB / 446 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003351/0.2415, allocations: 1.523 MB / 447.5 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.2419, allocations: 239.8 kB / 447.7 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.242, allocations: 27.98 kB / 447.8 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006289/0.2426, allocations: 63.95 kB / 447.8 MB, free: 1.867 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.2428, allocations: 60.56 kB / 447.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/0.2429, allocations: 19.98 kB / 447.9 MB, free: 1.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005391/0.2434, allocations: 458.9 kB / 448.4 MB, free: 1.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2434, allocations: 3.938 kB / 448.4 MB, free: 1.344 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007597/0.2442, allocations: 279.7 kB / 448.6 MB, free: 1.07 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001557/0.2443, allocations: 127.2 kB / 448.8 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.2465, allocations: 1.406 MB / 450.2 MB, free: 15.44 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.2465, allocations: 4 kB / 450.2 MB, free: 15.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.2478, allocations: 0.816 MB / 451 MB, free: 14.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000943/0.2488, allocations: 218.9 kB / 451.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.2515, allocations: 1.985 MB / 453.2 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/0.252, allocations: 0.9478 MB / 454.1 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004209/0.2525, allocations: 98.44 kB / 454.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.2526, allocations: 63.42 kB / 454.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2526, allocations: 4 kB / 454.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of Templates: time 0.02522/0.2779, allocations: 16.91 MB / 471.2 MB, free: 10.36 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches