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.001168/0.001169, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 59.28 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09343, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003794/0.09725, allocations: 2.77 MB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.09854, allocations: 0.8568 MB / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.09866, allocations: 0 / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.0989, allocations: 75.42 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.09915, allocations: 138.9 kB / 362.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.09934, allocations: 87.89 kB / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004102/0.09976, allocations: 441.7 kB / 363.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.09992, allocations: 103.2 kB / 363.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.1001, allocations: 155.5 kB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.1003, allocations: 183.2 kB / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.1004, allocations: 32 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.472e-05/0.1004, allocations: 39.94 kB / 363.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.114e-05/0.1005, allocations: 75.75 kB / 363.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.1007, allocations: 187.1 kB / 364 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004062/0.1011, allocations: 438.5 kB / 364.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1011, allocations: 8 kB / 364.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1011, allocations: 4 kB / 364.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1011, allocations: 0 / 364.4 MB, free: 7.758 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.000951/0.1021, allocations: 0.6794 MB / 365.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.537e-05/0.1021, allocations: 12.03 kB / 365.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.244e-05/0.1022, allocations: 40.56 kB / 365.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003698/0.1026, allocations: 303.4 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.01e-05/0.1027, allocations: 46.69 kB / 365.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.1027, allocations: 28.28 kB / 365.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004536/0.1032, allocations: 321.6 kB / 365.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.1032, allocations: 3.938 kB / 365.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/0.1032, allocations: 12 kB / 365.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1032, allocations: 11.98 kB / 365.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.1036, allocations: 205.6 kB / 366.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.1049, allocations: 0.8025 MB / 366.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005155/0.1054, allocations: 264.1 kB / 367.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.1056, allocations: 120.9 kB / 367.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.1057, allocations: 7.984 kB / 367.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.1057, allocations: 38.56 kB / 367.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.1057, allocations: 0 / 367.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.000942/0.1067, allocations: 487.2 kB / 367.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1068, allocations: 320.4 kB / 368.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.1071, allocations: 279 kB / 368.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.1071, allocations: 33.7 kB / 368.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.1072, allocations: 176.6 kB / 368.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.507e-05/0.1073, allocations: 98.55 kB / 368.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1074, allocations: 65.7 kB / 368.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1076, allocations: 342.8 kB / 369.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.1078, allocations: 95.7 kB / 369.2 MB, free: 2.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.1081, allocations: 208.2 kB / 369.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004105/0.1085, allocations: 271.4 kB / 369.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1085, allocations: 0 / 369.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006185/0.1091, allocations: 361.6 kB / 370 MB, free: 1.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/0.1092, allocations: 29.7 kB / 370 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1092, allocations: 8.094 kB / 370 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.1094, allocations: 40.83 kB / 370.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009773/0.1103, allocations: 155.8 kB / 370.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1678/0.2782, allocations: 3.229 MB / 373.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.2786, allocations: 33.34 kB / 373.5 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.2786, allocations: 9.266 kB / 373.5 MB, free: 17.94 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.0001883/0.2788, allocations: 160.4 kB / 373.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-05/0.2789, allocations: 33.42 kB / 373.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.853e-05/0.279, allocations: 39.53 kB / 373.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.279, allocations: 11.36 kB / 373.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.279, allocations: 0 / 373.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005692/0.2796, allocations: 0.6512 MB / 374.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004789/0.2801, allocations: 389.8 kB / 374.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2801, allocations: 2.641 kB / 374.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.2814, allocations: 209.2 kB / 375 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.848e-05/0.2815, allocations: 25.67 kB / 375 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.2815, allocations: 7.016 kB / 375 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.284, allocations: 3.037 MB / 378 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2841, allocations: 0.6562 kB / 378 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007951/0.2849, allocations: 0.5065 MB / 378.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.285, allocations: 138.7 kB / 378.7 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.2851, allocations: 11.25 kB / 378.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.2853, allocations: 17.11 kB / 378.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.091e-05/0.2854, allocations: 23.02 kB / 378.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.2855, allocations: 10.55 kB / 378.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002745/0.2857, allocations: 203.5 kB / 378.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2857, allocations: 0 / 378.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005104/0.2863, allocations: 106.5 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.0001132/0.2864, allocations: 110.1 kB / 379.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.2878, allocations: 0.539 MB / 379.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.2879, allocations: 1.469 kB / 379.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.2893, allocations: 404.1 kB / 380.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.2898, allocations: 92.92 kB / 380.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.2916, allocations: 0.854 MB / 381 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.292, allocations: 0.7785 MB / 381.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.2922, allocations: 36.86 kB / 381.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.76e-05/0.2922, allocations: 26.75 kB / 381.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2923, allocations: 0 / 381.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Templates: time 0.01445/0.3067, allocations: 6.206 MB / 388.1 MB, free: 10.94 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 gbode -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