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.001459/0.001459, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001198/0.001198, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 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.022/1.022, allocations: 177 MB / 205.1 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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.924e-06/1.924e-06, allocations: 0 / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.125e-05/3.317e-05, allocations: 2.312 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.008856/0.008889, allocations: 11.08 MB / 284.4 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1382/0.1471, allocations: 6.821 MB / 291.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001945/0.1491, allocations: 60.81 kB / 291.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009767/0.15, allocations: 418.1 kB / 291.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003566/0.1536, allocations: 1.775 MB / 293.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005024/0.1586, allocations: 2.81 MB / 296.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004845/0.1635, allocations: 4.059 MB / 300.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001524/0.165, allocations: 1.084 MB / 301.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002945/0.168, allocations: 2.078 MB / 303.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.1699, allocations: 1.553 MB / 305 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005365/0.1704, allocations: 159.1 kB / 305.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.1723, allocations: 0.9901 MB / 306.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004322/0.1728, allocations: 0.6676 MB / 306.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006198/0.1734, allocations: 0.6342 MB / 307.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006199/0.1796, allocations: 2.296 MB / 309.8 MB, free: 9.012 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1796, allocations: 4 kB / 309.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1796, allocations: 0 / 309.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.586e-05/0.1797, allocations: 0 / 309.8 MB, free: 9.008 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003709/0.1834, allocations: 2.035 MB / 311.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.87e-05/0.1834, allocations: 13.45 kB / 311.8 MB, free: 7.625 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.1839, allocations: 290.2 kB / 312.1 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009731/0.1848, allocations: 0.9772 MB / 313.1 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.341e-05/0.1849, allocations: 253 kB / 313.4 MB, free: 6.445 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.1851, allocations: 112.8 kB / 313.5 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1861, allocations: 1.447 MB / 314.9 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.1861, allocations: 0 / 314.9 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.726e-05/0.1862, allocations: 45.06 kB / 315 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.82e-05/0.1863, allocations: 109.9 kB / 315.1 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006801/0.1869, allocations: 0.594 MB / 315.7 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003928/0.1909, allocations: 3.948 MB / 319.6 MB, free: 228 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006065/0.1915, allocations: 0.5674 MB / 320.2 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.1918, allocations: 249.9 kB / 320.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002163/0.1939, allocations: 1.747 MB / 322.2 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1939, allocations: 50.39 kB / 322.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003703/0.1943, allocations: 182.5 kB / 322.4 MB, free: 13.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.896e-06/0.1943, allocations: 4 kB / 322.4 MB, free: 13.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.00623/0.2005, allocations: 2.895 MB / 325.3 MB, free: 10.6 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.2007, allocations: 145.5 kB / 325.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.2013, allocations: 0.9237 MB / 326.4 MB, free: 9.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.888e-05/0.2013, allocations: 49.7 kB / 326.4 MB, free: 9.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.2016, allocations: 0.6865 MB / 327.1 MB, free: 8.938 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003589/0.202, allocations: 414.8 kB / 327.5 MB, free: 8.559 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002894/0.2023, allocations: 294.9 kB / 327.8 MB, free: 8.293 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.428e-05/0.2024, allocations: 488.7 kB / 328.3 MB, free: 7.812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/0.2027, allocations: 211.5 kB / 328.5 MB, free: 7.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005359/0.2032, allocations: 0.7763 MB / 329.2 MB, free: 6.652 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008469/0.2041, allocations: 0.9348 MB / 330.2 MB, free: 5.605 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.2041, allocations: 4 kB / 330.2 MB, free: 5.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001677/0.2057, allocations: 1.15 MB / 331.3 MB, free: 4.504 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.2058, allocations: 10.81 kB / 331.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.2058, allocations: 8 kB / 331.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002692/0.2085, allocations: 0.9266 MB / 332.3 MB, free: 3.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.2091, allocations: 299.4 kB / 332.6 MB, free: 3.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000942/0.21, allocations: 1.149 MB / 333.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/0.2105, allocations: 47.98 kB / 333.8 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.288e-05/0.2105, allocations: 55.97 kB / 333.8 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004542/0.211, allocations: 350.7 kB / 334.2 MB, free: 1.695 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005401/0.2115, allocations: 0.7979 MB / 335 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008378/0.2124, allocations: 0.9507 MB / 335.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.618e-06/0.2124, allocations: 4 kB / 335.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001291/0.2137, allocations: 1.131 MB / 337 MB, free: 14.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2137, allocations: 8 kB / 337.1 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.2137, allocations: 13.44 kB / 337.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.216, allocations: 0.7905 MB / 337.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008098/0.2168, allocations: 307.5 kB / 338.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000711/0.2175, allocations: 1.071 MB / 339.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004567/0.218, allocations: 55.97 kB / 339.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.218, allocations: 63.91 kB / 339.3 MB, free: 12.18 MB / 298.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.0002439/0.2183, allocations: 351.7 kB / 339.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.2185, allocations: 171.2 kB / 339.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/0.22, allocations: 1.088 MB / 340.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.22, allocations: 16 kB / 341 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.22, allocations: 0 / 341 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.964e-06/0.22, allocations: 3.984 kB / 341 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.2221, allocations: 1.771 MB / 342.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.2221, allocations: 4 kB / 342.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.2225, allocations: 187.7 kB / 342.9 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009512/0.2234, allocations: 0.5875 MB / 343.5 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.527e-05/0.2235, allocations: 31.98 kB / 343.5 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008184/0.2243, allocations: 1.174 MB / 344.7 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2243, allocations: 0 / 344.7 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.226, allocations: 1.264 MB / 346 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/0.2263, allocations: 258.8 kB / 346.2 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.569e-05/0.2263, allocations: 24 kB / 346.3 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003657/0.2267, allocations: 43.97 kB / 346.3 MB, free: 5.289 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.2268, allocations: 89.14 kB / 346.4 MB, free: 5.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.264e-05/0.2269, allocations: 35.97 kB / 346.4 MB, free: 5.168 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003291/0.2272, allocations: 0.5187 MB / 346.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2272, allocations: 0 / 346.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001422/0.2286, allocations: 0.874 MB / 347.8 MB, free: 3.812 MB / 298.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 (90): * Single equations (assignments): 89 * 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.0006241/0.2293, allocations: 461.8 kB / 348.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002101/0.2314, allocations: 1.443 MB / 349.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2314, allocations: 384 / 349.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005979/0.232, allocations: 456.7 kB / 350.2 MB, free: 1.516 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.2334, allocations: 0.634 MB / 350.8 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003414/0.2368, allocations: 2.47 MB / 353.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.237, allocations: 340.7 kB / 353.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007435/0.2377, allocations: 298.1 kB / 353.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009008/0.2386, allocations: 0.5759 MB / 354.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2386, allocations: 0 / 354.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of Templates: time 0.03983/0.2785, allocations: 37.97 MB / 392.4 MB, free: 7.68 MB / 346.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] 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","",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.7059561163187027]