Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001007/0.001007, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.0014/0.0014, allocations: 169.2 kB / 25.33 MB, free: 9.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9677/0.9677, allocations: 158.6 MB / 187.2 MB, free: 2.941 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 251 MB, free: 7.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.852e-05/3.007e-05, allocations: 6.25 kB / 251 MB, free: 7.539 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002854/0.002884, allocations: 2.789 MB / 253.8 MB, free: 4.734 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.004218, allocations: 0.846 MB / 254.7 MB, free: 3.879 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.004358, allocations: 7.938 kB / 254.7 MB, free: 3.871 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.004551, allocations: 71.42 kB / 254.7 MB, free: 3.801 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002579/0.004809, allocations: 146.9 kB / 254.9 MB, free: 3.656 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002152/0.005024, allocations: 83.81 kB / 255 MB, free: 3.574 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004771/0.005501, allocations: 454.2 kB / 255.4 MB, free: 3.129 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.005647, allocations: 67.94 kB / 255.5 MB, free: 3.059 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.005879, allocations: 255.4 kB / 255.7 MB, free: 2.809 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.006049, allocations: 131.7 kB / 255.8 MB, free: 2.68 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.006095, allocations: 32 kB / 255.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.34e-05/0.006138, allocations: 36 kB / 255.9 MB, free: 2.613 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-05/0.006194, allocations: 79.69 kB / 256 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.006302, allocations: 135.7 kB / 256.1 MB, free: 2.402 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.006591, allocations: 299 kB / 256.4 MB, free: 2.109 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.006596, allocations: 3.938 kB / 256.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.006598, allocations: 0 / 256.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.006604, allocations: 4 kB / 256.4 MB, free: 2.102 MB / 234.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.000822/0.007426, allocations: 0.7079 MB / 257.1 MB, free: 1.344 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.007465, allocations: 11.98 kB / 257.1 MB, free: 1.332 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.707e-05/0.007552, allocations: 56.7 kB / 257.2 MB, free: 1.277 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.00784, allocations: 252.5 kB / 257.4 MB, free: 1.004 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-05/0.007937, allocations: 102.2 kB / 257.5 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.007976, allocations: 28.38 kB / 257.6 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004261/0.008402, allocations: 0.6432 MB / 258.2 MB, free: 76 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.008416, allocations: 4.188 kB / 258.2 MB, free: 72 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.008441, allocations: 16.11 kB / 258.2 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.008451, allocations: 4 kB / 258.2 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.008634, allocations: 114.8 kB / 258.4 MB, free: 15.94 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008578/0.009491, allocations: 0.6732 MB / 259 MB, free: 15.23 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.009761, allocations: 175.5 kB / 259.2 MB, free: 15.05 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.302e-05/0.009854, allocations: 67.66 kB / 259.3 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.00988, allocations: 4 kB / 259.3 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.009908, allocations: 53.3 kB / 259.3 MB, free: 14.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.684e-06/0.00991, allocations: 0 / 259.3 MB, free: 14.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005507/0.01046, allocations: 309 kB / 259.6 MB, free: 14.6 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.01056, allocations: 316.4 kB / 259.9 MB, free: 14.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.01078, allocations: 326.3 kB / 260.2 MB, free: 13.88 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.01081, allocations: 37.7 kB / 260.3 MB, free: 13.84 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.01091, allocations: 215.5 kB / 260.5 MB, free: 13.62 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.389e-05/0.01099, allocations: 111.1 kB / 260.6 MB, free: 13.51 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.01106, allocations: 75.3 kB / 260.7 MB, free: 13.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.01119, allocations: 0.5196 MB / 261.2 MB, free: 12.9 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.01132, allocations: 77.61 kB / 261.3 MB, free: 12.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.01168, allocations: 478.3 kB / 261.7 MB, free: 12.22 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.01188, allocations: 190 kB / 261.9 MB, free: 12.02 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01188, allocations: 4 kB / 261.9 MB, free: 12.01 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003343/0.01221, allocations: 325.3 kB / 262.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.01224, allocations: 37.8 kB / 262.3 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.01225, allocations: 0 / 262.3 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001282/0.01238, allocations: 31.67 kB / 262.3 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.01279, allocations: 135.8 kB / 262.4 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.01486, allocations: 3.733 MB / 266.2 MB, free: 7.488 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.01501, allocations: 35.77 kB / 266.2 MB, free: 7.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.01503, allocations: 12 kB / 266.2 MB, free: 7.441 MB / 250.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.000117/0.01514, allocations: 176.5 kB / 266.4 MB, free: 7.258 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.01519, allocations: 43.81 kB / 266.4 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.587e-05/0.01524, allocations: 47.05 kB / 266.5 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01524, allocations: 8 kB / 266.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.01524, allocations: 0 / 266.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006057/0.01585, allocations: 0.5757 MB / 267.1 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.01609, allocations: 272.4 kB / 267.3 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.01609, allocations: 0 / 267.3 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.01664, allocations: 179.8 kB / 267.5 MB, free: 6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.525e-05/0.01672, allocations: 23.67 kB / 267.5 MB, free: 5.973 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.01674, allocations: 8 kB / 267.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/0.01833, allocations: 3.635 MB / 271.2 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.01834, allocations: 3.938 kB / 271.2 MB, free: 2.078 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004125/0.01875, allocations: 443.6 kB / 271.6 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.514e-05/0.01884, allocations: 71.64 kB / 271.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.01887, allocations: 8 kB / 271.7 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.019, allocations: 19.98 kB / 271.7 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.01906, allocations: 27.89 kB / 271.7 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.01907, allocations: 4 kB / 271.7 MB, free: 1.492 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.0192, allocations: 223 kB / 272 MB, free: 1.277 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0192, allocations: 0 / 272 MB, free: 1.277 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.0195, allocations: 104 kB / 272.1 MB, free: 1.176 MB / 250.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.0001253/0.01962, allocations: 107.2 kB / 272.2 MB, free: 1.059 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007844/0.02041, allocations: 0.5061 MB / 272.7 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.02041, allocations: 4.188 kB / 272.7 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005824/0.02099, allocations: 397.2 kB / 273.1 MB, free: 100 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.02135, allocations: 96.55 kB / 273.2 MB, free: 4 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.02299, allocations: 0.7521 MB / 273.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.735e-05/0.02304, allocations: 97.25 kB / 274 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.963e-05/0.02314, allocations: 38.95 kB / 274 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.0232, allocations: 32.5 kB / 274.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.0232, allocations: 0 / 274.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of Templates: time 0.009238/0.03244, allocations: 7.076 MB / 281.2 MB, free: 8.016 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.0240847491659224]