Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001579/0.001579, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002038/0.002038, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001296, allocations: 55.47 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1046, allocations: 50.52 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003694/0.1083, allocations: 2.762 MB / 361.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.1097, allocations: 0.853 MB / 362.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.1099, allocations: 7.938 kB / 362.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.1102, allocations: 71.42 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.1104, allocations: 138.9 kB / 362.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.1107, allocations: 95.75 kB / 362.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.1112, allocations: 438.3 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.1114, allocations: 99.2 kB / 363.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.1116, allocations: 163.5 kB / 363.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.1118, allocations: 187.2 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.469e-05/0.1119, allocations: 32 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.628e-05/0.1119, allocations: 36 kB / 363.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.707e-05/0.112, allocations: 71.75 kB / 363.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.1122, allocations: 191.1 kB / 364 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.1126, allocations: 442.5 kB / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.1126, allocations: 7.938 kB / 364.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1126, allocations: 0 / 364.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1126, allocations: 0 / 364.4 MB, free: 7.746 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.001143/0.1138, allocations: 0.6794 MB / 365.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1138, allocations: 12.03 kB / 365.1 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.782e-05/0.1139, allocations: 40.56 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004033/0.1143, allocations: 299.5 kB / 365.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.053e-05/0.1144, allocations: 50.69 kB / 365.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.903e-05/0.1145, allocations: 24.28 kB / 365.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/0.115, allocations: 321.6 kB / 365.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.115, allocations: 0 / 365.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.115, allocations: 12 kB / 365.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.115, allocations: 4 kB / 365.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004214/0.1155, allocations: 205.6 kB / 366.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.1168, allocations: 0.7987 MB / 366.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.1174, allocations: 271.4 kB / 367.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.1176, allocations: 120.9 kB / 367.2 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.95e-05/0.1177, allocations: 7.984 kB / 367.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.1177, allocations: 38.66 kB / 367.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.1177, allocations: 3.938 kB / 367.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001006/0.1187, allocations: 487.1 kB / 367.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.1188, allocations: 320.4 kB / 368.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.1191, allocations: 279 kB / 368.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.1192, allocations: 33.7 kB / 368.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.1193, allocations: 176.6 kB / 368.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.902e-05/0.1194, allocations: 102.5 kB / 368.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.1195, allocations: 65.7 kB / 368.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1196, allocations: 338.8 kB / 369.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.1199, allocations: 95.7 kB / 369.1 MB, free: 2.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.1201, allocations: 212.2 kB / 369.4 MB, free: 2.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.1206, allocations: 263.4 kB / 369.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1206, allocations: 8.094 kB / 369.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006003/0.1212, allocations: 361.6 kB / 370 MB, free: 1.773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.667e-05/0.1212, allocations: 33.7 kB / 370 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1213, allocations: 0 / 370 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.1214, allocations: 48.77 kB / 370.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009909/0.1224, allocations: 159.9 kB / 370.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1742/0.2966, allocations: 3.224 MB / 373.4 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.297, allocations: 32.47 kB / 373.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.2971, allocations: 13.55 kB / 373.5 MB, free: 17.93 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.0001863/0.2973, allocations: 160 kB / 373.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.216e-05/0.2974, allocations: 32.06 kB / 373.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.136e-05/0.2975, allocations: 37.88 kB / 373.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2975, allocations: 3.656 kB / 373.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2975, allocations: 3.844 kB / 373.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005971/0.2981, allocations: 0.6523 MB / 374.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004359/0.2985, allocations: 391.1 kB / 374.7 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.2986, allocations: 2.297 kB / 374.7 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.2999, allocations: 206.9 kB / 374.9 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-05/0.3, allocations: 21.78 kB / 375 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.3, allocations: 7.188 kB / 375 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/0.3026, allocations: 3.036 MB / 378 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3026, allocations: 1.5 kB / 378 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008482/0.3035, allocations: 0.5122 MB / 378.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.3037, allocations: 137 kB / 378.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.3037, allocations: 13.33 kB / 378.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.304, allocations: 19.66 kB / 378.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.3041, allocations: 21.86 kB / 378.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.3041, allocations: 7.156 kB / 378.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002259/0.3043, allocations: 207.9 kB / 378.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3044, allocations: 0 / 378.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.3049, allocations: 102.2 kB / 379 MB, free: 13.84 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.0001482/0.305, allocations: 118.5 kB / 379.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.3065, allocations: 0.5314 MB / 379.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3065, allocations: 1.375 kB / 379.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.3078, allocations: 403.7 kB / 380.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000519/0.3084, allocations: 96.97 kB / 380.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3099, allocations: 0.8471 MB / 381 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.3102, allocations: 0.7775 MB / 381.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.3103, allocations: 39.03 kB / 381.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.843e-05/0.3104, allocations: 33.81 kB / 381.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3104, allocations: 0 / 381.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01236/0.3228, allocations: 6.204 MB / 388.1 MB, free: 10.93 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches