Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002677/0.002677, allocations: 87.67 kB / 20.96 MB, free: 3.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003122/0.003122, allocations: 161.3 kB / 24.27 MB, free: 136 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.547/1.547, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.404e-05/2.531e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004302/0.004328, allocations: 2.753 MB / 275 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.005887, allocations: 0.8412 MB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.006009, allocations: 0 / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.006274, allocations: 79.34 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003163/0.00659, allocations: 138.9 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.006799, allocations: 87.86 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005663/0.007365, allocations: 460.8 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.007531, allocations: 63.94 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/0.007847, allocations: 251.5 kB / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.008086, allocations: 127.7 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.229e-05/0.008159, allocations: 36 kB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.27e-05/0.008241, allocations: 36 kB / 277.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.65e-05/0.008328, allocations: 75.69 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001989/0.008527, allocations: 143.7 kB / 277.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005877/0.009114, allocations: 462.5 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.009119, allocations: 0 / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.00912, allocations: 0 / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.009129, allocations: 4 kB / 277.8 MB, free: 12.3 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.001285/0.01041, allocations: 0.7309 MB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.01045, allocations: 12.03 kB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.01059, allocations: 60.7 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.01104, allocations: 252.5 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.01119, allocations: 98.17 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.01126, allocations: 32.36 kB / 279 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008446/0.0121, allocations: 0.6971 MB / 279.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.01212, allocations: 192 / 279.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.01215, allocations: 16.12 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.01216, allocations: 8 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.01263, allocations: 193.9 kB / 279.9 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.0142, allocations: 0.7636 MB / 280.7 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006105/0.01481, allocations: 271.4 kB / 280.9 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.01504, allocations: 107.6 kB / 281 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.01508, allocations: 8 kB / 281 MB, free: 8.793 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.01512, allocations: 49.27 kB / 281.1 MB, free: 8.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.283e-06/0.01512, allocations: 0 / 281.1 MB, free: 8.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.001121/0.01624, allocations: 413.9 kB / 281.5 MB, free: 8.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002113/0.01646, allocations: 320.4 kB / 281.8 MB, free: 7.934 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.01689, allocations: 390.3 kB / 282.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.01693, allocations: 33.7 kB / 282.2 MB, free: 7.496 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.01713, allocations: 235.5 kB / 282.4 MB, free: 7.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.01725, allocations: 107.1 kB / 282.6 MB, free: 7.156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.0174, allocations: 75.36 kB / 282.6 MB, free: 7.074 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003162/0.01771, allocations: 0.5313 MB / 283.2 MB, free: 6.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.01796, allocations: 109.7 kB / 283.3 MB, free: 6.418 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005853/0.01854, allocations: 0.5257 MB / 283.8 MB, free: 5.762 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005117/0.01905, allocations: 290.8 kB / 284.1 MB, free: 5.457 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.01906, allocations: 0 / 284.1 MB, free: 5.457 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007453/0.0198, allocations: 410.2 kB / 284.5 MB, free: 5.035 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.635e-05/0.01985, allocations: 33.7 kB / 284.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.01985, allocations: 0 / 284.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.02003, allocations: 51.77 kB / 284.6 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009168/0.02095, allocations: 131.8 kB / 284.7 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004911/0.02586, allocations: 4.018 MB / 288.7 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.02622, allocations: 27.84 kB / 288.7 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.02626, allocations: 15.98 kB / 288.7 MB, free: 0.5117 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 0.0002604/0.02652, allocations: 196.5 kB / 288.9 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.02662, allocations: 44 kB / 289 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.734e-05/0.02672, allocations: 47.05 kB / 289 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.02672, allocations: 4 kB / 289 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.02673, allocations: 4 kB / 289 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008557/0.02758, allocations: 0.649 MB / 289.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.02817, allocations: 312.3 kB / 290 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.02818, allocations: 0 / 290 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.02939, allocations: 179.8 kB / 290.2 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.318e-05/0.02948, allocations: 23.69 kB / 290.2 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.0295, allocations: 7.984 kB / 290.2 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004119/0.03362, allocations: 3.819 MB / 294 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.03362, allocations: 7.938 kB / 294 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009455/0.03457, allocations: 0.562 MB / 294.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.03473, allocations: 67.64 kB / 294.7 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.03478, allocations: 8 kB / 294.7 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.03505, allocations: 15.98 kB / 294.7 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.688e-05/0.03513, allocations: 31.95 kB / 294.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.03516, allocations: 8 kB / 294.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002899/0.03545, allocations: 263 kB / 295 MB, free: 9.859 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03545, allocations: 0 / 295 MB, free: 9.859 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000445/0.03589, allocations: 99.95 kB / 295.1 MB, free: 9.762 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 0.0001696/0.03606, allocations: 115.2 kB / 295.2 MB, free: 9.637 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.03764, allocations: 0.5929 MB / 295.8 MB, free: 9.004 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.03764, allocations: 0 / 295.8 MB, free: 9.004 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.03908, allocations: 445.2 kB / 296.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005404/0.03962, allocations: 97.73 kB / 296.3 MB, free: 8.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.0414, allocations: 0.7676 MB / 297.1 MB, free: 7.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.04159, allocations: 177.8 kB / 297.2 MB, free: 7.461 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.04173, allocations: 30.97 kB / 297.3 MB, free: 7.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.118e-05/0.04181, allocations: 36.48 kB / 297.3 MB, free: 7.395 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.04181, allocations: 0 / 297.3 MB, free: 7.395 MB / 282.7 MB Notification: Performance of Templates: time 0.01417/0.05598, allocations: 6.72 MB / 304 MB, free: 0.8555 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.737194485962391]