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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009895/0.0009895, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 165.4 kB / 24.82 MB, free: 9.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9824/0.9824, allocations: 177 MB / 205.1 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 3.938 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.396e-05, allocations: 5.266 kB / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002783/0.002807, allocations: 2.76 MB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.004111, allocations: 0.8372 MB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.004267, allocations: 7.938 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.004491, allocations: 75.41 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.00473, allocations: 142.8 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.004911, allocations: 95.75 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.005306, allocations: 450.2 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.00544, allocations: 67.89 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.005697, allocations: 243.5 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.005856, allocations: 127.7 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.005901, allocations: 36 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.485e-05/0.005946, allocations: 39.94 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.005998, allocations: 79.72 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.006106, allocations: 131.8 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000258/0.006364, allocations: 299 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.006365, allocations: 4 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.006366, allocations: 0 / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.006371, allocations: 0 / 278.7 MB, free: 11.85 MB / 266.7 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.0006929/0.007064, allocations: 0.7156 MB / 279.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.007098, allocations: 15.98 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.451e-05/0.007172, allocations: 64.7 kB / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.007417, allocations: 248.5 kB / 279.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.406e-05/0.007491, allocations: 98.17 kB / 279.8 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/0.007526, allocations: 24.38 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.007896, allocations: 0.6354 MB / 280.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.007908, allocations: 4.125 kB / 280.5 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.007932, allocations: 16.12 kB / 280.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.007939, allocations: 4 kB / 280.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.008053, allocations: 87.41 kB / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007638/0.008817, allocations: 0.6386 MB / 281.2 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.009014, allocations: 162.6 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.009076, allocations: 55.66 kB / 281.4 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.009101, allocations: 12 kB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.009124, allocations: 41.39 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.009126, allocations: 0 / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.000426/0.009552, allocations: 281.7 kB / 281.7 MB, free: 8.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.009637, allocations: 312.4 kB / 282.1 MB, free: 8.102 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.00982, allocations: 322.2 kB / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.009845, allocations: 33.7 kB / 282.4 MB, free: 7.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.933e-05/0.009944, allocations: 227.5 kB / 282.6 MB, free: 7.504 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.638e-05/0.01, allocations: 107.1 kB / 282.7 MB, free: 7.398 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.01007, allocations: 79.27 kB / 282.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.0102, allocations: 0.5196 MB / 283.3 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.01027, allocations: 61.67 kB / 283.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.01047, allocations: 466.2 kB / 283.8 MB, free: 6.129 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.01062, allocations: 178 kB / 284 MB, free: 5.934 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.01062, allocations: 0 / 284 MB, free: 5.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002637/0.01088, allocations: 298.3 kB / 284.3 MB, free: 5.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.01091, allocations: 41.62 kB / 284.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.01091, allocations: 0 / 284.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.088e-05/0.01099, allocations: 31.67 kB / 284.4 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003763/0.01137, allocations: 131.9 kB / 284.5 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.01333, allocations: 3.703 MB / 288.2 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.01346, allocations: 23.84 kB / 288.2 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.01347, allocations: 12 kB / 288.2 MB, free: 1.449 MB / 266.7 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 9.849e-05/0.01357, allocations: 180.5 kB / 288.4 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.624e-05/0.01362, allocations: 43.81 kB / 288.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.462e-05/0.01366, allocations: 39.08 kB / 288.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01367, allocations: 7.938 kB / 288.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.01367, allocations: 0 / 288.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002956/0.01396, allocations: 0.571 MB / 289.1 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.01417, allocations: 225 kB / 289.3 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01418, allocations: 0 / 289.3 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.01468, allocations: 179.8 kB / 289.5 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.395e-05/0.01473, allocations: 23.67 kB / 289.5 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.01474, allocations: 4 kB / 289.5 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00172/0.01646, allocations: 3.586 MB / 293.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.01646, allocations: 4.031 kB / 293.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.01678, allocations: 407.3 kB / 293.5 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-05/0.01685, allocations: 63.66 kB / 293.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.01688, allocations: 16 kB / 293.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.017, allocations: 15.98 kB / 293.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/0.01705, allocations: 23.95 kB / 293.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.01706, allocations: 4 kB / 293.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.378e-05/0.01715, allocations: 218.9 kB / 293.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01715, allocations: 0 / 293.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002668/0.01742, allocations: 108 kB / 293.9 MB, free: 11.36 MB / 282.7 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 9.201e-05/0.01751, allocations: 99.25 kB / 294 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006031/0.01812, allocations: 0.4989 MB / 294.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.01812, allocations: 4 kB / 294.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005236/0.01864, allocations: 385.8 kB / 294.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.01895, allocations: 104.7 kB / 295 MB, free: 10.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.02011, allocations: 0.7402 MB / 295.7 MB, free: 9.438 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.54e-05/0.02017, allocations: 97.3 kB / 295.8 MB, free: 9.324 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.02027, allocations: 38.95 kB / 295.9 MB, free: 9.281 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.02051, allocations: 222 kB / 296.1 MB, free: 9.062 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02051, allocations: 0 / 296.1 MB, free: 9.062 MB / 282.7 MB Notification: Performance of Templates: time 0.00851/0.02902, allocations: 7.21 MB / 303.3 MB, free: 2.035 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.786975745111704]