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.001365/0.001365, allocations: 117.2 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 208.5 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2467, allocations: 50.55 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003587/0.2503, allocations: 2.767 MB / 412 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.2516, allocations: 0.853 MB / 412.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.2518, allocations: 8 kB / 412.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002815/0.2521, allocations: 67.41 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003001/0.2524, allocations: 146.8 kB / 413.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.2526, allocations: 83.88 kB / 413.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004854/0.2531, allocations: 445.8 kB / 413.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.2533, allocations: 99.34 kB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.2535, allocations: 159.5 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.2537, allocations: 175.2 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.2538, allocations: 32 kB / 414 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.461e-05/0.2538, allocations: 43.94 kB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.361e-05/0.2539, allocations: 79.75 kB / 414.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.2541, allocations: 187.1 kB / 414.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004319/0.2545, allocations: 443.6 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.2546, allocations: 4 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2546, allocations: 0 / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.2546, allocations: 0 / 414.8 MB, free: 12.02 MB / 334.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.00108/0.2557, allocations: 0.6757 MB / 415.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2557, allocations: 8.031 kB / 415.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.216e-05/0.2558, allocations: 44.47 kB / 415.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.2562, allocations: 303.4 kB / 415.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.148e-05/0.2563, allocations: 50.69 kB / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.42e-05/0.2564, allocations: 28.38 kB / 415.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/0.2569, allocations: 313.6 kB / 416.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.2569, allocations: 4 kB / 416.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.2569, allocations: 12 kB / 416.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.2569, allocations: 8 kB / 416.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004059/0.2573, allocations: 197.6 kB / 416.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.2587, allocations: 0.8102 MB / 417.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/0.2592, allocations: 267 kB / 417.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.2594, allocations: 124.8 kB / 417.6 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.144e-05/0.2595, allocations: 11.92 kB / 417.6 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.2595, allocations: 34.56 kB / 417.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.785e-06/0.2595, allocations: 4 kB / 417.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001009/0.2605, allocations: 495.1 kB / 418.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.2607, allocations: 320.4 kB / 418.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/0.2609, allocations: 275 kB / 418.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.261, allocations: 33.7 kB / 418.7 MB, free: 7.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2611, allocations: 172.7 kB / 418.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.998e-05/0.2612, allocations: 102.4 kB / 419 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.2613, allocations: 69.7 kB / 419.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.2614, allocations: 342.8 kB / 419.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.2616, allocations: 91.95 kB / 419.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.2619, allocations: 208.2 kB / 419.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000426/0.2623, allocations: 268.3 kB / 420 MB, free: 6.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2623, allocations: 0 / 420 MB, free: 6.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005964/0.2629, allocations: 365.6 kB / 420.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.263, allocations: 29.7 kB / 420.4 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.263, allocations: 4 kB / 420.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.2631, allocations: 36.83 kB / 420.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000985/0.2641, allocations: 163.9 kB / 420.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003413/0.2676, allocations: 3.228 MB / 423.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.2678, allocations: 31.81 kB / 423.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.2679, allocations: 12 kB / 423.8 MB, free: 2.254 MB / 334.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.0001816/0.2681, allocations: 161.7 kB / 424 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.514e-05/0.2681, allocations: 35.7 kB / 424 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.675e-05/0.2682, allocations: 39.08 kB / 424.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2682, allocations: 4 kB / 424.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.2682, allocations: 0 / 424.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006482/0.2689, allocations: 0.6539 MB / 424.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.2693, allocations: 385.2 kB / 425.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2693, allocations: 8 kB / 425.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.2705, allocations: 204 kB / 425.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.076e-05/0.2706, allocations: 24.86 kB / 425.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.2706, allocations: 7.984 kB / 425.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002875/0.2735, allocations: 3.034 MB / 428.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2735, allocations: 0 / 428.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000774/0.2743, allocations: 0.5205 MB / 428.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.2745, allocations: 140.6 kB / 429 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.2745, allocations: 8 kB / 429 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.2748, allocations: 15.98 kB / 429 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.2749, allocations: 23.97 kB / 429.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.2749, allocations: 8.094 kB / 429.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001954/0.2751, allocations: 205.9 kB / 429.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2751, allocations: 0 / 429.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.2755, allocations: 115.9 kB / 429.4 MB, free: 12.2 MB / 350.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.0001297/0.2756, allocations: 107.2 kB / 429.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.2771, allocations: 0.5369 MB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.2771, allocations: 4 kB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.2784, allocations: 394.3 kB / 430.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.2789, allocations: 83.58 kB / 430.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.2805, allocations: 0.8658 MB / 431.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.2808, allocations: 0.776 MB / 432.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.2809, allocations: 42.89 kB / 432.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.346e-05/0.281, allocations: 31.38 kB / 432.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.281, allocations: 0 / 432.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of Templates: time 0.01037/0.2914, allocations: 6.251 MB / 438.5 MB, free: 3.117 MB / 350.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