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.001326/0.001326, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001591/0.001591, allocations: 160.9 kB / 24.91 MB, free: 8.719 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 1/1, allocations: 177 MB / 205.2 MB, free: 5.031 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.092e-06/1.092e-06, allocations: 0 / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.15e-05/1.259e-05, allocations: 5.266 kB / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002721/0.002734, allocations: 2.802 MB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009818/0.003715, allocations: 0.8642 MB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.003817, allocations: 11.94 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.004013, allocations: 67.41 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001947/0.004208, allocations: 146.9 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.004351, allocations: 95.75 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.004673, allocations: 454 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.004785, allocations: 78.55 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.004957, allocations: 239.5 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.005108, allocations: 135.6 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.005146, allocations: 36 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.481e-05/0.00518, allocations: 32 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.4e-05/0.005224, allocations: 79.69 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.749e-05/0.005312, allocations: 135.7 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.005539, allocations: 299 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.005541, allocations: 0 / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005541, allocations: 4 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.005545, allocations: 0 / 278.8 MB, free: 11.56 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.0005648/0.00611, allocations: 0.5831 MB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.646e-05/0.006136, allocations: 11.98 kB / 279.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.648e-05/0.006193, allocations: 48.89 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.006392, allocations: 209.7 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.292e-05/0.006455, allocations: 102.2 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.006486, allocations: 28.38 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.006792, allocations: 0.6089 MB / 280.4 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.006802, allocations: 192 / 280.4 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.836e-05/0.00682, allocations: 16.12 kB / 280.4 MB, free: 9.766 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.006825, allocations: 4 kB / 280.4 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.006927, allocations: 75.44 kB / 280.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006053/0.007532, allocations: 481.9 kB / 281 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.007699, allocations: 134.4 kB / 281.1 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.236e-05/0.007751, allocations: 52.84 kB / 281.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.00777, allocations: 4 kB / 281.2 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.007789, allocations: 38.56 kB / 281.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.062e-06/0.00779, allocations: 8 kB / 281.2 MB, free: 8.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003549/0.008145, allocations: 223 kB / 281.4 MB, free: 8.719 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002994/0.008445, allocations: 316.4 kB / 281.8 MB, free: 8.336 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.008575, allocations: 259 kB / 282 MB, free: 8.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.008596, allocations: 37.64 kB / 282 MB, free: 8.027 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.008651, allocations: 145.4 kB / 282.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.008701, allocations: 115 kB / 282.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.008764, allocations: 61.69 kB / 282.4 MB, free: 7.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.008838, allocations: 342.7 kB / 282.7 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.771e-05/0.008895, allocations: 57.69 kB / 282.7 MB, free: 7.297 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.009057, allocations: 430.7 kB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.009187, allocations: 154.6 kB / 283.3 MB, free: 6.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.009189, allocations: 0 / 283.3 MB, free: 6.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0001985/0.009387, allocations: 251.6 kB / 283.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.009409, allocations: 33.64 kB / 283.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.009413, allocations: 0 / 283.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.669e-05/0.009489, allocations: 28.78 kB / 283.6 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004217/0.009911, allocations: 155.9 kB / 283.8 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.01123, allocations: 2.538 MB / 286.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.01135, allocations: 31.83 kB / 286.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.01136, allocations: 12 kB / 286.4 MB, free: 3.352 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 7.966e-05/0.01144, allocations: 129.8 kB / 286.5 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.01148, allocations: 35.95 kB / 286.5 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.779e-05/0.01152, allocations: 39.08 kB / 286.6 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.01152, allocations: 4 kB / 286.6 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.01152, allocations: 3.938 kB / 286.6 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002371/0.01176, allocations: 0.5331 MB / 287.1 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.01194, allocations: 189.6 kB / 287.3 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.01194, allocations: 0 / 287.3 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/0.01247, allocations: 211.7 kB / 287.5 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.742e-05/0.01251, allocations: 16.84 kB / 287.5 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.01252, allocations: 8 kB / 287.5 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.01387, allocations: 2.453 MB / 290 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01387, allocations: 0 / 290 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.01412, allocations: 312.2 kB / 290.3 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.01418, allocations: 39.7 kB / 290.3 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.01421, allocations: 8 kB / 290.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.01432, allocations: 15.98 kB / 290.3 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.01437, allocations: 27.89 kB / 290.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.01438, allocations: 15.95 kB / 290.4 MB, free: 15 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.27e-05/0.01444, allocations: 96.62 kB / 290.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01444, allocations: 0 / 290.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000223/0.01466, allocations: 96 kB / 290.6 MB, free: 14.81 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 7.948e-05/0.01474, allocations: 84.42 kB / 290.6 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005469/0.01529, allocations: 440.9 kB / 291.1 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.0153, allocations: 0 / 291.1 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004768/0.01577, allocations: 327.7 kB / 291.4 MB, free: 13.92 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.01603, allocations: 104.4 kB / 291.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.01711, allocations: 0.6802 MB / 292.2 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.067e-05/0.01717, allocations: 97.09 kB / 292.3 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.472e-05/0.01726, allocations: 34.95 kB / 292.3 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.0175, allocations: 193.2 kB / 292.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.0175, allocations: 4 kB / 292.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of Templates: time 0.008502/0.026, allocations: 7.529 MB / 300 MB, free: 5.422 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 -s gbode -gbm=radauIIA3 -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.8515021950006485]