Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.002171/0.002171, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.001984/0.001984, allocations: 161.5 kB / 25.03 MB, free: 8.926 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 1.325/1.325, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] 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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_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.1..m_flow",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 250.3 MB, free: 7.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.393e-05/3.559e-05, allocations: 6.312 kB / 250.4 MB, free: 7.719 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02315/0.02319, allocations: 16.2 MB / 266.6 MB, free: 7.449 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01236/0.03555, allocations: 6.843 MB / 273.4 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007958/0.03634, allocations: 35.69 kB / 273.4 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.0375, allocations: 321.9 kB / 273.7 MB, free: 244 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003378/0.04088, allocations: 1.13 MB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005126/0.046, allocations: 1.913 MB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003381/0.04938, allocations: 2.159 MB / 278.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009666/0.05035, allocations: 0.5494 MB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001911/0.05226, allocations: 1.056 MB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.05363, allocations: 0.7831 MB / 281.3 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.05381, allocations: 80 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002566/0.05638, allocations: 1.022 MB / 282.4 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004498/0.05683, allocations: 343 kB / 282.8 MB, free: 7.168 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005509/0.05738, allocations: 335.2 kB / 283.1 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.06064, allocations: 1.987 MB / 285.1 MB, free: 4.848 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.06065, allocations: 0 / 285.1 MB, free: 4.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.06065, allocations: 0 / 285.1 MB, free: 4.848 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.06066, allocations: 0 / 285.1 MB, free: 4.848 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.003238/0.0639, allocations: 1.37 MB / 286.5 MB, free: 3.438 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.06395, allocations: 11.98 kB / 286.5 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004733/0.06443, allocations: 160.2 kB / 286.6 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.06565, allocations: 0.5895 MB / 287.2 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.06583, allocations: 156.1 kB / 287.4 MB, free: 2.477 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.06598, allocations: 59.98 kB / 287.4 MB, free: 2.418 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.06765, allocations: 0.9781 MB / 288.4 MB, free: 1.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.06767, allocations: 0 / 288.4 MB, free: 1.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.622e-05/0.06776, allocations: 23.98 kB / 288.4 MB, free: 1.316 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.605e-05/0.06785, allocations: 49.28 kB / 288.5 MB, free: 1.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.06908, allocations: 0.5203 MB / 289 MB, free: 0.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006119/0.0752, allocations: 2.697 MB / 291.7 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.07622, allocations: 489.7 kB / 292.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006102/0.07683, allocations: 233.1 kB / 292.4 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002738/0.07957, allocations: 1.103 MB / 293.5 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.07961, allocations: 41.89 kB / 293.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.164e-06/0.07962, allocations: 0 / 293.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.006521/0.08614, allocations: 2.076 MB / 295.6 MB, free: 9.984 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.08622, allocations: 81.77 kB / 295.7 MB, free: 9.887 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009486/0.08716, allocations: 0.6821 MB / 296.4 MB, free: 9.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.314e-05/0.08724, allocations: 37.7 kB / 296.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004003/0.08764, allocations: 435.4 kB / 296.8 MB, free: 8.711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000284/0.08792, allocations: 262 kB / 297.1 MB, free: 8.453 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003438/0.08827, allocations: 184.2 kB / 297.3 MB, free: 8.266 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003899/0.08866, allocations: 0.5937 MB / 297.9 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.08922, allocations: 255.5 kB / 298.1 MB, free: 7.406 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008279/0.09005, allocations: 0.5175 MB / 298.6 MB, free: 6.801 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.09139, allocations: 0.741 MB / 299.4 MB, free: 5.977 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.0914, allocations: 8 kB / 299.4 MB, free: 5.969 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002243/0.09364, allocations: 0.9062 MB / 300.3 MB, free: 5.051 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.09367, allocations: 8 kB / 300.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.09369, allocations: 4 kB / 300.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.09503, allocations: 363.8 kB / 300.7 MB, free: 4.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007098/0.09574, allocations: 151.8 kB / 300.8 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.09713, allocations: 1.073 MB / 301.9 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006134/0.09774, allocations: 31.98 kB / 301.9 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.698e-05/0.09783, allocations: 35.92 kB / 301.9 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008344/0.09866, allocations: 436.7 kB / 302.4 MB, free: 2.926 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008113/0.09947, allocations: 0.5132 MB / 302.9 MB, free: 2.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001327/0.1008, allocations: 0.7368 MB / 303.6 MB, free: 1.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.182e-06/0.1008, allocations: 4 kB / 303.6 MB, free: 1.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001997/0.1028, allocations: 0.879 MB / 304.5 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1028, allocations: 11.98 kB / 304.5 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.1028, allocations: 4 kB / 304.5 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007533/0.1036, allocations: 251.8 kB / 304.8 MB, free: 348 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007051/0.1043, allocations: 163.8 kB / 304.9 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1055, allocations: 1.018 MB / 305.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.1062, allocations: 43.91 kB / 306 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-05/0.1063, allocations: 32 kB / 306 MB, free: 15.05 MB / 298.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.0003832/0.1066, allocations: 311.9 kB / 306.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.1069, allocations: 91.58 kB / 306.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/0.109, allocations: 0.8122 MB / 307.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.109, allocations: 8 kB / 307.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.109, allocations: 0 / 307.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.109, allocations: 7.922 kB / 307.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/0.1124, allocations: 1.577 MB / 308.8 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.1124, allocations: 11.94 kB / 308.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006349/0.1131, allocations: 115.8 kB / 308.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.1142, allocations: 355.3 kB / 309.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.1143, allocations: 12 kB / 309.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.1157, allocations: 1.073 MB / 310.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1157, allocations: 0 / 310.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.1182, allocations: 1.229 MB / 311.6 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005144/0.1187, allocations: 163.3 kB / 311.8 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.1188, allocations: 12 kB / 311.8 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.1193, allocations: 27.98 kB / 311.8 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/0.1195, allocations: 56.55 kB / 311.9 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.468e-05/0.1196, allocations: 27.97 kB / 311.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006182/0.1202, allocations: 430.8 kB / 312.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1202, allocations: 0 / 312.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001811/0.122, allocations: 0.5849 MB / 312.9 MB, free: 8.059 MB / 298.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 (58): * Single equations (assignments): 57 * 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.001352/0.1234, allocations: 0.5251 MB / 313.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003173/0.1265, allocations: 1.129 MB / 314.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1265, allocations: 0 / 314.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000991/0.1275, allocations: 384.3 kB / 314.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.1294, allocations: 377.1 kB / 315.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.1327, allocations: 1.508 MB / 316.8 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.1331, allocations: 384.5 kB / 317.2 MB, free: 3.703 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009397/0.1341, allocations: 273.8 kB / 317.4 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.1343, allocations: 72.47 kB / 317.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1343, allocations: 0 / 317.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of Templates: time 0.04032/0.1746, allocations: 22.06 MB / 339.6 MB, free: 13.29 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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: 5.377886884030886]