Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.000892/0.000892, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001192/0.002084, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0008861/0.0008861, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001118/0.002004, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9839/0.9839, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07707/1.061, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.744e-05/1.871e-05, allocations: 2.312 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.007069/0.007088, allocations: 8.113 MB / 253.1 MB, free: 5.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006951/0.01404, allocations: 5.638 MB / 258.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006793/0.01472, allocations: 31.69 kB / 258.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000511/0.01523, allocations: 246.4 kB / 259 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001938/0.01717, allocations: 1.06 MB / 260.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002992/0.02016, allocations: 1.709 MB / 261.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00225/0.02241, allocations: 2.143 MB / 263.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007436/0.02315, allocations: 0.526 MB / 264.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.02464, allocations: 1.116 MB / 265.6 MB, free: 9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009554/0.0256, allocations: 0.6934 MB / 266.3 MB, free: 8.305 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.992e-05/0.02569, allocations: 76 kB / 266.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.02713, allocations: 1.018 MB / 267.4 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.02735, allocations: 271.2 kB / 267.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002685/0.02762, allocations: 263.5 kB / 267.9 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.02917, allocations: 1.309 MB / 269.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.729e-05/0.02919, allocations: 0 / 269.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.02919, allocations: 0 / 269.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.653e-05/0.02922, allocations: 0 / 269.2 MB, free: 5.375 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001697/0.03092, allocations: 1.457 MB / 270.6 MB, free: 3.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.03095, allocations: 8.625 kB / 270.7 MB, free: 3.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.03119, allocations: 132.6 kB / 270.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.03176, allocations: 499.9 kB / 271.3 MB, free: 3.219 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-05/0.03186, allocations: 160.1 kB / 271.4 MB, free: 3.039 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.415e-05/0.03193, allocations: 55.98 kB / 271.5 MB, free: 2.984 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006471/0.03258, allocations: 0.8047 MB / 272.3 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.0326, allocations: 3.984 kB / 272.3 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.03264, allocations: 27.98 kB / 272.3 MB, free: 2.051 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.746e-05/0.0327, allocations: 49.27 kB / 272.4 MB, free: 2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003662/0.03307, allocations: 269 kB / 272.6 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.03555, allocations: 1.647 MB / 274.3 MB, free: 60 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1054/0.141, allocations: 323.1 kB / 274.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1411, allocations: 104.8 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001338/0.1425, allocations: 0.7863 MB / 275.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.1425, allocations: 50.16 kB / 275.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 3.086e-06/0.1425, allocations: 0 / 275.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002792/0.1453, allocations: 1.351 MB / 276.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.1453, allocations: 59.8 kB / 276.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.1457, allocations: 485.2 kB / 277.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.1457, allocations: 36.17 kB / 277.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1458, allocations: 299.2 kB / 277.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.146, allocations: 235.6 kB / 278 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.1461, allocations: 140.7 kB / 278.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.989e-05/0.1462, allocations: 382.7 kB / 278.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.1464, allocations: 105.9 kB / 278.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.1466, allocations: 286.2 kB / 278.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00042/0.147, allocations: 417.5 kB / 279.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.147, allocations: 1.438 kB / 279.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006672/0.1477, allocations: 492 kB / 279.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1477, allocations: 7.297 kB / 279.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.1477, allocations: 4.281 kB / 279.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006059/0.1483, allocations: 280.7 kB / 280 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004593/0.1488, allocations: 191.9 kB / 280.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004024/0.1492, allocations: 0.6432 MB / 280.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.1494, allocations: 30.53 kB / 280.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.1495, allocations: 26.66 kB / 280.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002567/0.1498, allocations: 198 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002121/0.15, allocations: 286 kB / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004184/0.1504, allocations: 409.3 kB / 281.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.457e-06/0.1504, allocations: 2.156 kB / 281.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006768/0.1511, allocations: 482.2 kB / 282.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.1511, allocations: 6.875 kB / 282.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1511, allocations: 4.625 kB / 282.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004109/0.1515, allocations: 203.8 kB / 282.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.1519, allocations: 204 kB / 282.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003305/0.1523, allocations: 0.6208 MB / 283.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.1525, allocations: 27.52 kB / 283.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/0.1526, allocations: 26.44 kB / 283.4 MB, free: 12.18 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001645/0.1527, allocations: 229.3 kB / 283.6 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.1529, allocations: 65.25 kB / 283.6 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007309/0.1536, allocations: 476.4 kB / 284.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1536, allocations: 6.875 kB / 284.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1536, allocations: 0 / 284.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.1536, allocations: 7.328 kB / 284.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.155, allocations: 0.8774 MB / 285 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.155, allocations: 0 / 285 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004396/0.1554, allocations: 142.2 kB / 285.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.1556, allocations: 99.94 kB / 285.2 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006572/0.1563, allocations: 308.1 kB / 285.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.1563, allocations: 22.62 kB / 285.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004269/0.1568, allocations: 0.6548 MB / 286.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1568, allocations: 2.578 kB / 286.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000849/0.1576, allocations: 0.6525 MB / 286.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.038e-05/0.1577, allocations: 14.09 kB / 286.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.1579, allocations: 25.62 kB / 286.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.158, allocations: 57.7 kB / 287 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.253e-05/0.1581, allocations: 17.16 kB / 287 MB, free: 10.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002112/0.1583, allocations: 203.8 kB / 287.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1583, allocations: 0 / 287.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001221/0.1595, allocations: 0.5573 MB / 287.7 MB, free: 10.82 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000617/0.1601, allocations: 455.6 kB / 288.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.1612, allocations: 0.6658 MB / 288.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.506e-05/0.1612, allocations: 12.97 kB / 288.9 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002795/0.1615, allocations: 218.8 kB / 289.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008283/0.1624, allocations: 453.5 kB / 289.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007518/0.1699, allocations: 1.33 MB / 290.8 MB, free: 10 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.17, allocations: 206.7 kB / 291.1 MB, free: 9.918 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0007192/0.1707, allocations: 157.8 kB / 291.2 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005628/0.1713, allocations: 318.2 kB / 291.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of SimCode: time 2.555e-06/0.1713, allocations: 0 / 291.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of Templates: time 0.02354/0.1948, allocations: 23.67 MB / 315.2 MB, free: 4.875 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.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.2259083222597837]