Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001915/0.001915, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 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.002358/0.002358, allocations: 157.6 kB / 23.95 MB, free: 4.145 MB / 14.72 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.484/1.484, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.145e-05/2.309e-05, allocations: 2.281 kB / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02998/0.03001, allocations: 26.19 MB / 351.2 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02141/0.05142, allocations: 13.56 MB / 364.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.05316, allocations: 59.44 kB / 364.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.05475, allocations: 0.5821 MB / 365.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00599/0.06074, allocations: 2.439 MB / 367.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.07079, allocations: 4.009 MB / 371.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006232/0.07702, allocations: 4.176 MB / 376 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.07879, allocations: 1.004 MB / 377 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/0.08214, allocations: 2.069 MB / 379.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002622/0.08476, allocations: 1.633 MB / 380.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003251/0.08509, allocations: 164 kB / 380.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004644/0.08973, allocations: 1.907 MB / 382.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008149/0.09054, allocations: 0.6776 MB / 383.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009723/0.09152, allocations: 0.6315 MB / 384.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006638/0.09815, allocations: 3.977 MB / 388.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.09816, allocations: 0 / 388.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09816, allocations: 0 / 388.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.564e-05/0.09819, allocations: 0 / 388.1 MB, free: 5.812 MB / 350.1 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.005343/0.1035, allocations: 2.155 MB / 390.2 MB, free: 3.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1036, allocations: 11.98 kB / 390.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005918/0.1042, allocations: 179 kB / 390.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.106, allocations: 1.002 MB / 391.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.1063, allocations: 252.2 kB / 391.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.1065, allocations: 99.97 kB / 391.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003349/0.1098, allocations: 2.217 MB / 394 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.1098, allocations: 0 / 394 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/0.11, allocations: 47.91 kB / 394 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001761/0.1102, allocations: 117.9 kB / 394.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003328/0.1135, allocations: 1.796 MB / 395.9 MB, free: 13.66 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.1246, allocations: 5.087 MB / 401 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.1267, allocations: 1.169 MB / 402.2 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.1279, allocations: 0.7104 MB / 402.9 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005246/0.1331, allocations: 2.415 MB / 405.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.1332, allocations: 47.56 kB / 405.4 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007911/0.134, allocations: 179.3 kB / 405.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 5e-06/0.134, allocations: 4 kB / 405.5 MB, free: 3.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.01985/0.1538, allocations: 5.532 MB / 411.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.1539, allocations: 141.5 kB / 411.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.1554, allocations: 1.025 MB / 412.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.1555, allocations: 53.7 kB / 412.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000515/0.156, allocations: 0.633 MB / 412.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003972/0.1564, allocations: 404.5 kB / 413.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000525/0.157, allocations: 291.4 kB / 413.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1571, allocations: 309.1 kB / 413.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.1584, allocations: 0.7192 MB / 414.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.1601, allocations: 1.147 MB / 415.8 MB, free: 9.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002987/0.1631, allocations: 1.743 MB / 417.5 MB, free: 7.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.1631, allocations: 0 / 417.5 MB, free: 7.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004465/0.1675, allocations: 2.258 MB / 419.8 MB, free: 5.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.1676, allocations: 12 kB / 419.8 MB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.1676, allocations: 8 kB / 419.8 MB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007922/0.1755, allocations: 1.277 MB / 421.1 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.1768, allocations: 303.5 kB / 421.4 MB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002709/0.1796, allocations: 1.615 MB / 423 MB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.1808, allocations: 59.95 kB / 423 MB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.181, allocations: 67.97 kB / 423.1 MB, free: 1.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001824/0.1828, allocations: 0.984 MB / 424.1 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001727/0.1845, allocations: 1.135 MB / 425.2 MB, free: 15.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002822/0.1873, allocations: 1.718 MB / 426.9 MB, free: 13.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.845e-06/0.1873, allocations: 4 kB / 426.9 MB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004185/0.1915, allocations: 2.172 MB / 429.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1915, allocations: 12 kB / 429.1 MB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.1916, allocations: 8 kB / 429.1 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008122/0.1997, allocations: 1.112 MB / 430.3 MB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.2018, allocations: 299.6 kB / 430.5 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.2052, allocations: 1.454 MB / 432 MB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.2071, allocations: 63.97 kB / 432.1 MB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002334/0.2073, allocations: 71.97 kB / 432.1 MB, free: 8.574 MB / 398.1 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.0006648/0.208, allocations: 279.7 kB / 432.4 MB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004654/0.2085, allocations: 139.2 kB / 432.5 MB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00672/0.2152, allocations: 2.045 MB / 434.6 MB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.2152, allocations: 12 kB / 434.6 MB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.2152, allocations: 0 / 434.6 MB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.319e-05/0.2152, allocations: 7.969 kB / 434.6 MB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007832/0.2231, allocations: 3.195 MB / 437.8 MB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.2231, allocations: 0 / 437.8 MB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.2241, allocations: 195.7 kB / 438 MB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.2267, allocations: 0.8589 MB / 438.8 MB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.2268, allocations: 35.92 kB / 438.9 MB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002672/0.2295, allocations: 1.611 MB / 440.5 MB, free: 120 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2295, allocations: 8 kB / 440.5 MB, free: 112 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005006/0.2345, allocations: 2.893 MB / 443.4 MB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006968/0.2352, allocations: 295 kB / 443.7 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.2354, allocations: 20 kB / 443.7 MB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008991/0.2363, allocations: 51.95 kB / 443.8 MB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/0.2365, allocations: 97.12 kB / 443.8 MB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.2367, allocations: 51.97 kB / 443.9 MB, free: 12.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009586/0.2376, allocations: 0.675 MB / 444.6 MB, free: 12.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2376, allocations: 0 / 444.6 MB, free: 12.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002849/0.2405, allocations: 1.169 MB / 445.7 MB, free: 10.84 MB / 414.1 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.002009/0.2425, allocations: 0.9143 MB / 446.7 MB, free: 9.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006666/0.2492, allocations: 2.715 MB / 449.4 MB, free: 7.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.2492, allocations: 3.938 kB / 449.4 MB, free: 7.195 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.2511, allocations: 0.8245 MB / 450.2 MB, free: 6.371 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/0.2542, allocations: 0.6178 MB / 450.8 MB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006232/0.2604, allocations: 2.903 MB / 453.7 MB, free: 2.844 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007869/0.2612, allocations: 0.709 MB / 454.4 MB, free: 2.102 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001869/0.2631, allocations: 0.5615 MB / 455 MB, free: 1.535 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.2635, allocations: 120.4 kB / 455.1 MB, free: 1.418 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2635, allocations: 0 / 455.1 MB, free: 1.418 MB / 414.1 MB Notification: Performance of Templates: time 0.2314/0.4948, allocations: 41.11 MB / 496.2 MB, free: 123.6 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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: 6.514236725866795]