Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00138/0.00138, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.728/1.728, allocations: 227.7 MB / 247.7 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001967, allocations: 69.23 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09963, allocations: 50.53 MB / 358.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004177/0.1038, allocations: 2.762 MB / 361.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.1054, allocations: 0.8491 MB / 362 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.1056, allocations: 11.88 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003041/0.106, allocations: 83.41 kB / 362.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003298/0.1063, allocations: 134.9 kB / 362.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.1065, allocations: 83.83 kB / 362.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000506/0.107, allocations: 437.7 kB / 362.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.1073, allocations: 103.2 kB / 362.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.1075, allocations: 159.5 kB / 363 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.1077, allocations: 183.2 kB / 363.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.088e-05/0.1078, allocations: 32 kB / 363.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.373e-05/0.1079, allocations: 36 kB / 363.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.152e-05/0.108, allocations: 75.73 kB / 363.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.1082, allocations: 191.1 kB / 363.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000463/0.1086, allocations: 438.8 kB / 364 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.1087, allocations: 0 / 364 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1087, allocations: 3.938 kB / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.505e-06/0.1087, allocations: 4 kB / 364 MB, free: 8.398 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.001166/0.1098, allocations: 0.6794 MB / 364.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1099, allocations: 8.031 kB / 364.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.794e-05/0.11, allocations: 40.56 kB / 364.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.1104, allocations: 303.4 kB / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.1105, allocations: 46.69 kB / 365 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.1106, allocations: 32.22 kB / 365.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.1111, allocations: 317.6 kB / 365.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.1112, allocations: 0 / 365.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.1112, allocations: 12 kB / 365.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.1112, allocations: 4 kB / 365.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004293/0.1116, allocations: 205.6 kB / 365.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1131, allocations: 0.8103 MB / 366.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005851/0.1137, allocations: 263 kB / 366.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.114, allocations: 120.9 kB / 366.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.114, allocations: 7.984 kB / 366.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.1141, allocations: 38.56 kB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.083e-06/0.1141, allocations: 0 / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001163/0.1153, allocations: 495.2 kB / 367.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001766/0.1154, allocations: 312.4 kB / 367.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003389/0.1158, allocations: 275 kB / 367.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.1158, allocations: 33.7 kB / 367.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.116, allocations: 180.6 kB / 368.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.015e-05/0.1161, allocations: 98.55 kB / 368.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.1162, allocations: 65.7 kB / 368.2 MB, free: 3.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1164, allocations: 342.8 kB / 368.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/0.1166, allocations: 95.7 kB / 368.7 MB, free: 3.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/0.117, allocations: 216.6 kB / 368.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004817/0.1175, allocations: 267.4 kB / 369.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.1175, allocations: 3.938 kB / 369.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006817/0.1182, allocations: 361.6 kB / 369.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.1182, allocations: 35.73 kB / 369.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.1182, allocations: 0 / 369.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.1184, allocations: 48.92 kB / 369.6 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009992/0.1194, allocations: 155.8 kB / 369.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1609/0.2804, allocations: 3.232 MB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.2808, allocations: 37.06 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/0.2808, allocations: 8.359 kB / 373 MB, free: 18.75 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.0002124/0.2811, allocations: 158.2 kB / 373.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2812, allocations: 34.14 kB / 373.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.529e-05/0.2813, allocations: 37.61 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2813, allocations: 4.75 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2813, allocations: 3 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006175/0.2819, allocations: 0.6518 MB / 373.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004919/0.2824, allocations: 387.2 kB / 374.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.2824, allocations: 0 / 374.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/0.2838, allocations: 215.5 kB / 374.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.07e-05/0.2839, allocations: 22.8 kB / 374.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.2839, allocations: 10.34 kB / 374.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/0.2866, allocations: 3.032 MB / 377.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2867, allocations: 0 / 377.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008416/0.2875, allocations: 0.5115 MB / 378.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.2877, allocations: 136.2 kB / 378.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.269e-05/0.2878, allocations: 8.406 kB / 378.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.288, allocations: 15.2 kB / 378.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.2881, allocations: 26.64 kB / 378.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.2882, allocations: 10.94 kB / 378.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.2884, allocations: 200.5 kB / 378.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2884, allocations: 0 / 378.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004884/0.2889, allocations: 101 kB / 378.6 MB, free: 14.71 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.0001314/0.2891, allocations: 122.1 kB / 378.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.2907, allocations: 0.5588 MB / 379.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.2907, allocations: 1.188 kB / 379.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.292, allocations: 393 kB / 379.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.2927, allocations: 87.98 kB / 379.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.2944, allocations: 0.8938 MB / 380.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.2946, allocations: 0.7737 MB / 381.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.317e-05/0.2947, allocations: 33.56 kB / 381.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2947, allocations: 0 / 381.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01089/0.3056, allocations: 6.783 MB / 388.2 MB, free: 11.21 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches