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.0007919/0.0007921, allocations: 92.58 kB / 16.32 MB, free: 5.621 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.0007734/0.0007735, allocations: 183.2 kB / 17.21 MB, free: 5.535 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.459/1.459, allocations: 223.3 MB / 241.2 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002408, allocations: 8.047 kB / 300.8 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.104, allocations: 50.44 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002529/0.1066, allocations: 2.338 MB / 353.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.1077, allocations: 0.7053 MB / 354.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1078, allocations: 4 kB / 354.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.1081, allocations: 55.61 kB / 354.3 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.1083, allocations: 123.1 kB / 354.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.1085, allocations: 67.92 kB / 354.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.1089, allocations: 382.3 kB / 354.9 MB, free: 7.965 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.1091, allocations: 86.17 kB / 355 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.1092, allocations: 143.5 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.1094, allocations: 163.3 kB / 355.3 MB, free: 7.574 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.1095, allocations: 20 kB / 355.3 MB, free: 7.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.071e-05/0.1096, allocations: 24 kB / 355.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.549e-05/0.1096, allocations: 59.75 kB / 355.4 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.357e-05/0.1097, allocations: 101.5 kB / 355.5 MB, free: 7.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.11, allocations: 319.1 kB / 355.8 MB, free: 7.055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.11, allocations: 0 / 355.8 MB, free: 7.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.11, allocations: 0 / 355.8 MB, free: 7.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.11, allocations: 4 kB / 355.8 MB, free: 7.051 MB / 286.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.0009235/0.111, allocations: 0.6171 MB / 356.4 MB, free: 6.379 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.111, allocations: 12.03 kB / 356.4 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.978e-05/0.1111, allocations: 39.62 kB / 356.5 MB, free: 6.328 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.1115, allocations: 290.3 kB / 356.8 MB, free: 6.008 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.269e-05/0.1116, allocations: 54.12 kB / 356.8 MB, free: 5.949 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/0.1116, allocations: 20 kB / 356.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/0.1121, allocations: 321.5 kB / 357.1 MB, free: 5.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.1121, allocations: 3.953 kB / 357.1 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.1122, allocations: 8 kB / 357.1 MB, free: 5.566 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1122, allocations: 7.984 kB / 357.2 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004055/0.1126, allocations: 213.6 kB / 357.4 MB, free: 5.348 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1139, allocations: 0.8103 MB / 358.2 MB, free: 4.484 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.1145, allocations: 287 kB / 358.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002148/0.1147, allocations: 120.8 kB / 358.6 MB, free: 4.074 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.1148, allocations: 4 kB / 358.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.1148, allocations: 42.52 kB / 358.6 MB, free: 4.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.303e-06/0.1148, allocations: 0 / 358.6 MB, free: 4.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001003/0.1158, allocations: 495.2 kB / 359.1 MB, free: 3.508 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.116, allocations: 312.4 kB / 359.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.1163, allocations: 287 kB / 359.7 MB, free: 2.836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.1163, allocations: 29.7 kB / 359.7 MB, free: 2.801 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1164, allocations: 168.7 kB / 359.9 MB, free: 2.629 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/0.1165, allocations: 110.4 kB / 360 MB, free: 2.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.1165, allocations: 8 kB / 360 MB, free: 2.512 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1167, allocations: 342.8 kB / 360.3 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.1169, allocations: 91.95 kB / 360.4 MB, free: 2.078 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.1172, allocations: 216.2 kB / 360.6 MB, free: 1.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.1175, allocations: 139 kB / 360.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1175, allocations: 0 / 360.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006218/0.1181, allocations: 385.8 kB / 361.1 MB, free: 1.289 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.1181, allocations: 29.7 kB / 361.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1181, allocations: 96 / 361.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.1183, allocations: 40.78 kB / 361.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000965/0.1193, allocations: 207.8 kB / 361.4 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.1226, allocations: 3.063 MB / 364.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.1229, allocations: 43.72 kB / 364.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.123, allocations: 8 kB / 364.5 MB, free: 13.63 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 (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.0001639/0.1231, allocations: 153.8 kB / 364.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.1232, allocations: 39.58 kB / 364.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.126e-05/0.1233, allocations: 39.08 kB / 364.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1233, allocations: 0 / 364.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1233, allocations: 4 kB / 364.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006295/0.124, allocations: 0.6589 MB / 365.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004014/0.1244, allocations: 385.2 kB / 365.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1244, allocations: 288 / 365.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.1256, allocations: 259.7 kB / 366.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.868e-05/0.1257, allocations: 32.83 kB / 366.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.1258, allocations: 4 kB / 366.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.1285, allocations: 2.894 MB / 369 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1286, allocations: 0 / 369 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008215/0.1294, allocations: 0.5199 MB / 369.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.1295, allocations: 144.8 kB / 369.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.555e-05/0.1296, allocations: 8 kB / 369.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002473/0.1298, allocations: 15.98 kB / 369.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.1299, allocations: 27.91 kB / 369.7 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.13, allocations: 4 kB / 369.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.1301, allocations: 201.9 kB / 369.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.1302, allocations: 4 kB / 369.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.1306, allocations: 111.8 kB / 370 MB, free: 7.68 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 (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.0001309/0.1307, allocations: 103.8 kB / 370.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.1322, allocations: 0.5838 MB / 370.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1322, allocations: 0 / 370.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.1335, allocations: 454.4 kB / 371.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.1341, allocations: 80.55 kB / 371.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.136, allocations: 1.037 MB / 372.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.1364, allocations: 0.7723 MB / 373 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00017/0.1366, allocations: 38.95 kB / 373.1 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.1366, allocations: 27.44 kB / 373.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1366, allocations: 0 / 373.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of Templates: time 0.009627/0.1463, allocations: 5.481 MB / 378.6 MB, free: 15.11 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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