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.001515/0.001515, allocations: 80.8 kB / 22.28 MB, free: 2.211 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.001786/0.001786, allocations: 164.9 kB / 25.69 MB, free: 8.453 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.9306/0.9306, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.463e-06/1.463e-06, allocations: 0 / 251.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.366e-05/2.512e-05, allocations: 2.312 kB / 251.5 MB, free: 7.297 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004468/0.004493, allocations: 2.754 MB / 254.3 MB, free: 4.523 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.006329, allocations: 0.873 MB / 255.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.006504, allocations: 0 / 255.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.006802, allocations: 83.28 kB / 255.2 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003668/0.007168, allocations: 146.8 kB / 255.4 MB, free: 3.414 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.007425, allocations: 83.88 kB / 255.4 MB, free: 3.332 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005846/0.00801, allocations: 458.1 kB / 255.9 MB, free: 2.883 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.00819, allocations: 66.56 kB / 256 MB, free: 2.816 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.008529, allocations: 247.5 kB / 256.2 MB, free: 2.574 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.008786, allocations: 135.6 kB / 256.3 MB, free: 2.441 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.325e-05/0.008859, allocations: 32 kB / 256.4 MB, free: 2.41 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.2e-05/0.008921, allocations: 36 kB / 256.4 MB, free: 2.375 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.371e-05/0.008995, allocations: 75.69 kB / 256.5 MB, free: 2.301 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.009153, allocations: 143.7 kB / 256.6 MB, free: 2.16 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.009549, allocations: 302.9 kB / 256.9 MB, free: 1.863 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.009554, allocations: 0 / 256.9 MB, free: 1.863 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.009555, allocations: 0 / 256.9 MB, free: 1.863 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.009563, allocations: 0 / 256.9 MB, free: 1.863 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.0009508/0.01051, allocations: 0.5792 MB / 257.5 MB, free: 1.25 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.01055, allocations: 15.98 kB / 257.5 MB, free: 1.234 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.01065, allocations: 48.89 kB / 257.5 MB, free: 1.188 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.011, allocations: 209.8 kB / 257.8 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.01111, allocations: 98.16 kB / 257.8 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.01117, allocations: 32.31 kB / 257.9 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005077/0.01167, allocations: 0.605 MB / 258.5 MB, free: 84 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.01169, allocations: 192 / 258.5 MB, free: 84 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.01172, allocations: 24.11 kB / 258.5 MB, free: 60 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.01173, allocations: 8 kB / 258.5 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.01192, allocations: 75.38 kB / 258.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.01297, allocations: 477.9 kB / 259.1 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.01326, allocations: 130.5 kB / 259.2 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.147e-05/0.01336, allocations: 52.84 kB / 259.2 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.01339, allocations: 8 kB / 259.2 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.01342, allocations: 38.56 kB / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 2.134e-06/0.01342, allocations: 0 / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005922/0.01401, allocations: 226.3 kB / 259.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.01413, allocations: 316.4 kB / 259.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.01436, allocations: 251 kB / 260.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.01439, allocations: 33.7 kB / 260.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.251e-05/0.01448, allocations: 145.5 kB / 260.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.01456, allocations: 115 kB / 260.3 MB, free: 14.08 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.01467, allocations: 61.67 kB / 260.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003677/0.01504, allocations: 342.8 kB / 260.7 MB, free: 13.67 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.935e-05/0.01514, allocations: 61.67 kB / 260.8 MB, free: 13.6 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.0154, allocations: 430.7 kB / 261.2 MB, free: 13.07 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.01561, allocations: 162.6 kB / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01561, allocations: 0 / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003312/0.01594, allocations: 242.8 kB / 261.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.01598, allocations: 37.64 kB / 261.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.01599, allocations: 0 / 261.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001211/0.01611, allocations: 28.84 kB / 261.7 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005897/0.0167, allocations: 135.9 kB / 261.8 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/0.01893, allocations: 2.534 MB / 264.3 MB, free: 9.723 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.01915, allocations: 27.78 kB / 264.4 MB, free: 9.695 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.01918, allocations: 19.92 kB / 264.4 MB, free: 9.676 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.0001337/0.01931, allocations: 125.8 kB / 264.5 MB, free: 9.543 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-05/0.01938, allocations: 35.97 kB / 264.6 MB, free: 9.508 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.094e-05/0.01944, allocations: 39.08 kB / 264.6 MB, free: 9.465 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-06/0.01945, allocations: 4 kB / 264.6 MB, free: 9.461 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.01945, allocations: 0 / 264.6 MB, free: 9.461 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003909/0.01984, allocations: 0.526 MB / 265.1 MB, free: 8.828 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.02015, allocations: 197.6 kB / 265.3 MB, free: 8.617 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.02016, allocations: 0 / 265.3 MB, free: 8.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008054/0.02096, allocations: 179.8 kB / 265.5 MB, free: 8.441 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.108e-05/0.02103, allocations: 32.7 kB / 265.5 MB, free: 8.406 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.02105, allocations: 4 kB / 265.5 MB, free: 8.402 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.0232, allocations: 2.436 MB / 268 MB, free: 5.793 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.0232, allocations: 4.156 kB / 268 MB, free: 5.789 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000418/0.02362, allocations: 316.4 kB / 268.3 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.02374, allocations: 39.73 kB / 268.3 MB, free: 5.422 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.02378, allocations: 11.94 kB / 268.3 MB, free: 5.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.024, allocations: 19.98 kB / 268.3 MB, free: 5.391 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.842e-05/0.02407, allocations: 23.95 kB / 268.4 MB, free: 5.367 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.02409, allocations: 4 kB / 268.4 MB, free: 5.363 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001151/0.0242, allocations: 92.62 kB / 268.5 MB, free: 5.27 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0242, allocations: 0 / 268.5 MB, free: 5.27 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004354/0.02464, allocations: 111.9 kB / 268.6 MB, free: 5.16 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.0001452/0.02478, allocations: 92.34 kB / 268.7 MB, free: 5.062 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0009169/0.0257, allocations: 428.9 kB / 269.1 MB, free: 4.609 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.02571, allocations: 8 kB / 269.1 MB, free: 4.602 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008316/0.02654, allocations: 323.2 kB / 269.4 MB, free: 4.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.02699, allocations: 92.62 kB / 269.5 MB, free: 4.18 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.02882, allocations: 0.688 MB / 270.2 MB, free: 3.465 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.858e-05/0.0289, allocations: 97.3 kB / 270.3 MB, free: 3.352 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001562/0.02906, allocations: 42.94 kB / 270.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.02939, allocations: 177.2 kB / 270.5 MB, free: 3.137 MB / 250.7 MB Notification: Performance of SimCode: time 1.172e-06/0.02939, allocations: 0 / 270.5 MB, free: 3.137 MB / 250.7 MB Notification: Performance of Templates: time 0.0111/0.0405, allocations: 7.215 MB / 277.7 MB, free: 11.97 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: 2.831414946820587]