Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001223/0.001222, allocations: 111.3 kB / 17.16 MB, free: 6.051 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.001154/0.001154, allocations: 195 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.8 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 48.61 kB / 300.6 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09209, allocations: 49.45 MB / 350.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004039/0.09618, allocations: 2.799 MB / 352.9 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.09765, allocations: 0.81 MB / 353.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002318/0.09791, allocations: 8 kB / 353.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.09826, allocations: 63.59 kB / 353.7 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003618/0.09863, allocations: 119.1 kB / 353.9 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.09887, allocations: 75.91 kB / 353.9 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005617/0.09945, allocations: 423.2 kB / 354.3 MB, free: 320 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.09965, allocations: 83.3 kB / 354.4 MB, free: 236 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/0.09992, allocations: 143.5 kB / 354.6 MB, free: 92 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.1002, allocations: 167.3 kB / 354.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.318e-05/0.1003, allocations: 27.94 kB / 354.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.458e-05/0.1004, allocations: 24 kB / 354.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.1005, allocations: 75.67 kB / 354.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002265/0.1007, allocations: 175.2 kB / 355 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.101, allocations: 327.5 kB / 355.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.101, allocations: 0 / 355.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1011, allocations: 3.938 kB / 355.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1011, allocations: 0 / 355.3 MB, free: 15.3 MB / 302.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.001304/0.1024, allocations: 0.6834 MB / 356 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.1024, allocations: 8.031 kB / 356 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.1025, allocations: 36.56 kB / 356.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.103, allocations: 307.4 kB / 356.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.1031, allocations: 54.64 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.524e-05/0.1032, allocations: 20.28 kB / 356.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.1037, allocations: 329.6 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1037, allocations: 0 / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.307e-05/0.1038, allocations: 8 kB / 356.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1038, allocations: 4 kB / 356.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004276/0.1042, allocations: 209.6 kB / 357 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.1057, allocations: 0.7947 MB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.1063, allocations: 275 kB / 358 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.1065, allocations: 116.8 kB / 358.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.1066, allocations: 3.984 kB / 358.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.1066, allocations: 38.56 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.1066, allocations: 3.938 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001088/0.1077, allocations: 487.2 kB / 358.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001562/0.1079, allocations: 320.4 kB / 359 MB, free: 11.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.1082, allocations: 275 kB / 359.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.1082, allocations: 37.69 kB / 359.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1083, allocations: 172.6 kB / 359.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.949e-05/0.1084, allocations: 98.56 kB / 359.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.1085, allocations: 69.69 kB / 359.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1087, allocations: 338.8 kB / 360 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.1089, allocations: 91.95 kB / 360.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003141/0.1092, allocations: 208.6 kB / 360.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.1097, allocations: 279.4 kB / 360.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1097, allocations: 4 kB / 360.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006587/0.1104, allocations: 369.6 kB / 360.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.1104, allocations: 29.7 kB / 360.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1105, allocations: 0 / 360.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.1106, allocations: 36.84 kB / 361 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.1117, allocations: 163.9 kB / 361.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003595/0.1153, allocations: 3.004 MB / 364.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.1156, allocations: 35.88 kB / 364.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.1156, allocations: 8 kB / 364.2 MB, free: 5.781 MB / 302.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.0002209/0.1159, allocations: 157.8 kB / 364.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.821e-05/0.116, allocations: 35.56 kB / 364.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.458e-05/0.116, allocations: 39.08 kB / 364.4 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1161, allocations: 4 kB / 364.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.1161, allocations: 0 / 364.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006881/0.1168, allocations: 0.6511 MB / 365 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.1172, allocations: 373.2 kB / 365.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1172, allocations: 0 / 365.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.1186, allocations: 215.7 kB / 365.6 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.661e-05/0.1187, allocations: 28.8 kB / 365.7 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.1188, allocations: 7.984 kB / 365.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003062/0.1218, allocations: 2.828 MB / 368.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1218, allocations: 0 / 368.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008488/0.1227, allocations: 0.5158 MB / 369 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.1229, allocations: 132.8 kB / 369.1 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.928e-05/0.1229, allocations: 12 kB / 369.1 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.1232, allocations: 19.98 kB / 369.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.1233, allocations: 23.91 kB / 369.2 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.1233, allocations: 12 kB / 369.2 MB, free: 276 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.1236, allocations: 205.9 kB / 369.4 MB, free: 72 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1236, allocations: 96 / 369.4 MB, free: 72 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.1653/0.2889, allocations: 106.4 kB / 369.5 MB, free: 25.51 MB / 302.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.0002351/0.2892, allocations: 103.9 kB / 369.6 MB, free: 25.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.291, allocations: 0.5367 MB / 370.1 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.291, allocations: 1.094 kB / 370.1 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.2926, allocations: 393.3 kB / 370.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007501/0.2934, allocations: 85.03 kB / 370.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.2954, allocations: 0.9807 MB / 371.6 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.2957, allocations: 0.7762 MB / 372.4 MB, free: 23.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.2959, allocations: 30.23 kB / 372.4 MB, free: 23.94 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2959, allocations: 0 / 372.4 MB, free: 23.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01248/0.3083, allocations: 6.794 MB / 379.2 MB, free: 22.63 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches