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.0007758/0.0007759, allocations: 92 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009989/0.0009993, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.8 MB / 246.8 MB, free: 9.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002102/0.0002103, allocations: 8.281 kB / 307.7 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.08836, allocations: 51.53 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002711/0.09111, allocations: 2.441 MB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.09251, allocations: 0.783 MB / 362.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.09271, allocations: 4 kB / 362.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.09298, allocations: 67.58 kB / 362.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003215/0.09331, allocations: 123.1 kB / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.09353, allocations: 71.92 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.09403, allocations: 418.3 kB / 363.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.09422, allocations: 99.14 kB / 363.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.09444, allocations: 147.5 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/0.09468, allocations: 171.2 kB / 363.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.166e-05/0.09474, allocations: 20 kB / 363.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.462e-05/0.09481, allocations: 24 kB / 363.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.138e-05/0.09488, allocations: 59.7 kB / 363.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.09507, allocations: 208.9 kB / 363.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.09543, allocations: 406.7 kB / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.09544, allocations: 0 / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09545, allocations: 0 / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.09546, allocations: 0 / 364.3 MB, free: 8.031 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.0009689/0.09644, allocations: 0.625 MB / 364.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.09648, allocations: 12.03 kB / 364.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.725e-05/0.09659, allocations: 40.47 kB / 364.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.09694, allocations: 303.4 kB / 365.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.625e-05/0.09704, allocations: 58.62 kB / 365.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.655e-05/0.0971, allocations: 20.38 kB / 365.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005209/0.09762, allocations: 321.6 kB / 365.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.09765, allocations: 0 / 365.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.09768, allocations: 12 kB / 365.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.0977, allocations: 4 kB / 365.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.09816, allocations: 213.6 kB / 365.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.09954, allocations: 0.8064 MB / 366.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.1001, allocations: 284.5 kB / 366.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.1004, allocations: 128.8 kB / 367.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.933e-05/0.1004, allocations: 7.984 kB / 367.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.1005, allocations: 38.56 kB / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.353e-06/0.1005, allocations: 0 / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001053/0.1015, allocations: 0.4954 MB / 367.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.1016, allocations: 312.4 kB / 367.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.1019, allocations: 282.9 kB / 368.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.102, allocations: 41.7 kB / 368.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.1021, allocations: 168.6 kB / 368.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.315e-05/0.1022, allocations: 98.47 kB / 368.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.1022, allocations: 33.7 kB / 368.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1023, allocations: 342.8 kB / 368.9 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.1025, allocations: 95.95 kB / 368.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.1028, allocations: 212 kB / 369.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004644/0.1033, allocations: 279.4 kB / 369.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1033, allocations: 0 / 369.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006273/0.104, allocations: 377.6 kB / 369.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.104, allocations: 33.69 kB / 369.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.104, allocations: 0 / 369.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.1042, allocations: 40.83 kB / 369.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.1052, allocations: 203.9 kB / 370.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1833/0.2885, allocations: 3.073 MB / 373.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003822/0.2889, allocations: 36.58 kB / 373.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.289, allocations: 15.5 kB / 373.2 MB, free: 17.71 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.0001623/0.2891, allocations: 157.7 kB / 373.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.456e-05/0.2892, allocations: 32.45 kB / 373.4 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/0.2893, allocations: 38.25 kB / 373.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2893, allocations: 5.656 kB / 373.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2893, allocations: 0 / 373.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005968/0.2899, allocations: 0.6599 MB / 374.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.2903, allocations: 394 kB / 374.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2903, allocations: 0 / 374.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.2917, allocations: 254.8 kB / 374.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.241e-05/0.2918, allocations: 21.28 kB / 374.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.2918, allocations: 13.75 kB / 374.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/0.2944, allocations: 2.904 MB / 377.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2944, allocations: 0 / 377.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008751/0.2953, allocations: 0.5166 MB / 378.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.2954, allocations: 136.2 kB / 378.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.696e-05/0.2955, allocations: 11.28 kB / 378.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.2957, allocations: 22.67 kB / 378.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.092e-05/0.2958, allocations: 22.42 kB / 378.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.2959, allocations: 9 kB / 378.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.2961, allocations: 200.5 kB / 378.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2961, allocations: 3.562 kB / 378.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000441/0.2965, allocations: 107.2 kB / 378.7 MB, free: 13.95 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.00013/0.2967, allocations: 109 kB / 378.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.2983, allocations: 0.5787 MB / 379.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2983, allocations: 5.375 kB / 379.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.2997, allocations: 461.4 kB / 379.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005178/0.3002, allocations: 88.58 kB / 379.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.3019, allocations: 1.049 MB / 380.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.302, allocations: 0.7759 MB / 381.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.3022, allocations: 39.47 kB / 381.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.3023, allocations: 27.97 kB / 381.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3023, allocations: 0 / 381.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of Templates: time 0.01044/0.3127, allocations: 5.733 MB / 387.5 MB, free: 11.26 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 -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/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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches