Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001171/0.001171, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001237/0.001237, allocations: 168.6 kB / 25 MB, free: 8.863 MB / 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 0.9745/0.9745, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 273 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.193e-05/1.309e-05, allocations: 2.312 kB / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1337/0.1337, allocations: 29.69 MB / 302.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.1475, allocations: 15.05 MB / 317.8 MB, free: 3.875 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.1486, allocations: 59.66 kB / 317.8 MB, free: 3.844 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1498, allocations: 0.5851 MB / 318.4 MB, free: 3.344 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.1533, allocations: 2.444 MB / 320.9 MB, free: 1.461 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005913/0.1592, allocations: 4.007 MB / 324.9 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003272/0.1625, allocations: 4.166 MB / 329 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.1636, allocations: 1.074 MB / 330.1 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.1656, allocations: 2.054 MB / 332.2 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.1675, allocations: 1.668 MB / 333.8 MB, free: 5.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002523/0.1677, allocations: 164 kB / 334 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.1702, allocations: 1.895 MB / 335.9 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004436/0.1706, allocations: 0.6738 MB / 336.6 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000549/0.1712, allocations: 0.6393 MB / 337.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003224/0.1744, allocations: 3.252 MB / 340.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1744, allocations: 0 / 340.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1744, allocations: 0 / 340.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.1744, allocations: 0 / 340.4 MB, free: 14.92 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002621/0.177, allocations: 2.263 MB / 342.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.1771, allocations: 8.031 kB / 342.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004764/0.1776, allocations: 290.6 kB / 343 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1786, allocations: 1.02 MB / 344 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.1788, allocations: 256.2 kB / 344.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.1789, allocations: 108 kB / 344.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.1804, allocations: 1.541 MB / 345.9 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.1804, allocations: 7 kB / 345.9 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.481e-05/0.1805, allocations: 43.97 kB / 346 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.1806, allocations: 117.9 kB / 346.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.1818, allocations: 0.7143 MB / 346.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005178/0.187, allocations: 4.256 MB / 351.1 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008616/0.1878, allocations: 0.6085 MB / 351.7 MB, free: 3.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004395/0.1883, allocations: 302.5 kB / 352 MB, free: 3.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002328/0.1906, allocations: 1.838 MB / 353.8 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.1906, allocations: 58.38 kB / 353.9 MB, free: 1.09 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000398/0.191, allocations: 179.2 kB / 354 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.064e-06/0.191, allocations: 4 kB / 354 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of matching and sorting (n=112): time 0.007826/0.1989, allocations: 3.372 MB / 357.4 MB, free: 13.51 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.1989, allocations: 145.5 kB / 357.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000766/0.1997, allocations: 0.9574 MB / 358.5 MB, free: 12.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.506e-05/0.1998, allocations: 45.7 kB / 358.5 MB, free: 12.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003122/0.2001, allocations: 0.6943 MB / 359.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.2003, allocations: 408.6 kB / 359.6 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003001/0.2006, allocations: 297.1 kB / 359.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.705e-05/0.2007, allocations: 484.7 kB / 360.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004743/0.2012, allocations: 275.5 kB / 360.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008597/0.202, allocations: 0.8329 MB / 361.5 MB, free: 9.105 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.2032, allocations: 1.05 MB / 362.6 MB, free: 7.875 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.2032, allocations: 4 kB / 362.6 MB, free: 7.871 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001833/0.205, allocations: 1.297 MB / 363.9 MB, free: 6.562 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.205, allocations: 8.625 kB / 363.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.205, allocations: 15.98 kB / 363.9 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002951/0.208, allocations: 0.9386 MB / 364.8 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006114/0.2086, allocations: 299.5 kB / 365.1 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.2097, allocations: 1.163 MB / 366.3 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/0.2102, allocations: 55.97 kB / 366.3 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.987e-05/0.2103, allocations: 71.97 kB / 366.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006232/0.2109, allocations: 414.7 kB / 366.8 MB, free: 3.574 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000716/0.2116, allocations: 0.8484 MB / 367.7 MB, free: 2.504 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001285/0.2129, allocations: 1.06 MB / 368.7 MB, free: 1.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.849e-06/0.2129, allocations: 4 kB / 368.7 MB, free: 1.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001793/0.2147, allocations: 1.273 MB / 370 MB, free: 15.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2147, allocations: 12 kB / 370 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.2147, allocations: 9.5 kB / 370 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002567/0.2173, allocations: 0.8026 MB / 370.8 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/0.2179, allocations: 307.5 kB / 371.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008818/0.2187, allocations: 1.104 MB / 372.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004846/0.2192, allocations: 63.97 kB / 372.3 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.674e-05/0.2193, allocations: 71.91 kB / 372.4 MB, free: 13.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0002443/0.2196, allocations: 360.2 kB / 372.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002061/0.2198, allocations: 171.1 kB / 372.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.2217, allocations: 1.195 MB / 374.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.2217, allocations: 12 kB / 374.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2217, allocations: 6.875 kB / 374.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.2217, allocations: 7.969 kB / 374.1 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.2244, allocations: 2.136 MB / 376.2 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2244, allocations: 0 / 376.2 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.2249, allocations: 187.8 kB / 376.4 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.226, allocations: 0.6008 MB / 377 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.226, allocations: 35.92 kB / 377 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009867/0.227, allocations: 1.207 MB / 378.3 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.227, allocations: 4 kB / 378.3 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.229, allocations: 1.483 MB / 379.7 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/0.2293, allocations: 282.9 kB / 380 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.2295, allocations: 24 kB / 380 MB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.2299, allocations: 47.97 kB / 380.1 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.23, allocations: 97.12 kB / 380.2 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.677e-05/0.2301, allocations: 43.97 kB / 380.2 MB, free: 5.582 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004894/0.2306, allocations: 0.5695 MB / 380.8 MB, free: 5.004 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2306, allocations: 0 / 380.8 MB, free: 5.004 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0019/0.2325, allocations: 1.169 MB / 382 MB, free: 3.832 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001348/0.2338, allocations: 0.9236 MB / 382.9 MB, free: 2.898 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.2367, allocations: 1.653 MB / 384.5 MB, free: 1.254 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2367, allocations: 0 / 384.5 MB, free: 1.254 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000811/0.2375, allocations: 0.5145 MB / 385.1 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.2391, allocations: 0.6484 MB / 385.7 MB, free: 128 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/0.2424, allocations: 2.505 MB / 388.2 MB, free: 13.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.2426, allocations: 349.1 kB / 388.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009239/0.2435, allocations: 0.4989 MB / 389 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.2437, allocations: 124.5 kB / 389.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2437, allocations: 0 / 389.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of Templates: time 0.03814/0.2819, allocations: 41.38 MB / 430.5 MB, free: 3.648 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.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.8931177121121436]