Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 47.92 kB / 371.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2698, allocations: 52.18 MB / 423.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02111/0.2909, allocations: 16.11 MB / 440 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.3021, allocations: 6.948 MB / 446.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008999/0.303, allocations: 31.75 kB / 447 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.3042, allocations: 341.9 kB / 447.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003302/0.3075, allocations: 1.1 MB / 448.4 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005272/0.3128, allocations: 1.851 MB / 450.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.3165, allocations: 2.234 MB / 452.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.3176, allocations: 0.5039 MB / 453 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002021/0.3196, allocations: 0.8371 MB / 453.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.3214, allocations: 0.8486 MB / 454.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003952/0.3218, allocations: 84 kB / 454.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003067/0.3249, allocations: 1.232 MB / 456 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005994/0.3255, allocations: 331 kB / 456.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009835/0.3264, allocations: 461.9 kB / 456.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00399/0.3304, allocations: 1.85 MB / 458.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3304, allocations: 3.938 kB / 458.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3304, allocations: 0 / 458.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.104e-05/0.3305, allocations: 0 / 458.6 MB, free: 11.83 MB / 366.1 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.003439/0.3339, allocations: 1.231 MB / 459.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.334, allocations: 16.03 kB / 459.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004204/0.3344, allocations: 92.42 kB / 459.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.3356, allocations: 0.5635 MB / 460.5 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.3358, allocations: 160.1 kB / 460.7 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.3359, allocations: 55.98 kB / 460.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.3376, allocations: 0.8962 MB / 461.6 MB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.3376, allocations: 0 / 461.6 MB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.441e-05/0.3377, allocations: 23.98 kB / 461.6 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.033e-05/0.3378, allocations: 49.28 kB / 461.7 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.3394, allocations: 0.8521 MB / 462.5 MB, free: 7.789 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.006464/0.3458, allocations: 3.311 MB / 465.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.3469, allocations: 0.6264 MB / 466.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.3476, allocations: 350.1 kB / 466.8 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002908/0.3505, allocations: 1.329 MB / 468.1 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.3505, allocations: 51 kB / 468.2 MB, free: 1.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.134e-06/0.3505, allocations: 3.938 kB / 468.2 MB, free: 1.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007351/0.3579, allocations: 2.69 MB / 470.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.3579, allocations: 81.77 kB / 471 MB, free: 15.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009919/0.3589, allocations: 0.6838 MB / 471.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.359, allocations: 37.7 kB / 471.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.3593, allocations: 341 kB / 472 MB, free: 14.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.3595, allocations: 245.9 kB / 472.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002745/0.3598, allocations: 146.6 kB / 472.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.36, allocations: 386.8 kB / 472.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006541/0.3607, allocations: 372.6 kB / 473.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000805/0.3615, allocations: 0.5269 MB / 473.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.3629, allocations: 0.8564 MB / 474.5 MB, free: 11.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3629, allocations: 4 kB / 474.5 MB, free: 11.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002222/0.3651, allocations: 1.158 MB / 475.7 MB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.3651, allocations: 8 kB / 475.7 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.3652, allocations: 7.938 kB / 475.7 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.3665, allocations: 452.5 kB / 476.1 MB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/0.3672, allocations: 159.7 kB / 476.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.3686, allocations: 1.024 MB / 477.3 MB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006481/0.3692, allocations: 31.98 kB / 477.4 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.84e-05/0.3693, allocations: 35.98 kB / 477.4 MB, free: 8.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00092/0.3703, allocations: 0.5292 MB / 477.9 MB, free: 7.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007849/0.371, allocations: 0.5193 MB / 478.4 MB, free: 7.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00134/0.3724, allocations: 0.8377 MB / 479.3 MB, free: 6.465 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.305e-06/0.3724, allocations: 11.94 kB / 479.3 MB, free: 6.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002065/0.3745, allocations: 1.095 MB / 480.4 MB, free: 5.348 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3745, allocations: 8 kB / 480.4 MB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3745, allocations: 4 kB / 480.4 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007642/0.3752, allocations: 316.8 kB / 480.7 MB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000679/0.3759, allocations: 171.7 kB / 480.9 MB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.3771, allocations: 0.9035 MB / 481.8 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006103/0.3777, allocations: 32.02 kB / 481.8 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-05/0.3777, allocations: 35.98 kB / 481.8 MB, free: 3.859 MB / 382.1 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.0002997/0.378, allocations: 228.1 kB / 482.1 MB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.3783, allocations: 75.53 kB / 482.1 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002199/0.3805, allocations: 1.095 MB / 483.2 MB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3805, allocations: 4 kB / 483.2 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3805, allocations: 0 / 483.2 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.3805, allocations: 7.984 kB / 483.2 MB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003592/0.3841, allocations: 1.972 MB / 485.2 MB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3841, allocations: 0 / 485.2 MB, free: 416 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006173/0.3847, allocations: 119.9 kB / 485.3 MB, free: 296 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.386, allocations: 436.5 kB / 485.8 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-05/0.386, allocations: 19.98 kB / 485.8 MB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.3874, allocations: 1.036 MB / 486.8 MB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.3874, allocations: 7.922 kB / 486.8 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/0.3902, allocations: 1.601 MB / 488.4 MB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005192/0.3907, allocations: 171.4 kB / 488.6 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.3909, allocations: 16 kB / 488.6 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006273/0.3915, allocations: 31.97 kB / 488.6 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.3917, allocations: 64.48 kB / 488.7 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.137e-05/0.3918, allocations: 27.98 kB / 488.7 MB, free: 12.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007224/0.3925, allocations: 475 kB / 489.2 MB, free: 12.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3925, allocations: 4 kB / 489.2 MB, free: 12.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001754/0.3942, allocations: 0.5926 MB / 489.8 MB, free: 11.79 MB / 398.1 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.001265/0.3955, allocations: 477.9 kB / 490.3 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003225/0.3987, allocations: 1.338 MB / 491.6 MB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3987, allocations: 0 / 491.6 MB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.3998, allocations: 443.5 kB / 492 MB, free: 9.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.4016, allocations: 372.7 kB / 492.4 MB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/0.4054, allocations: 1.813 MB / 494.2 MB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007203/0.4062, allocations: 0.9832 MB / 495.2 MB, free: 6.332 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003126/0.4065, allocations: 91.39 kB / 495.3 MB, free: 6.242 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4065, allocations: 0 / 495.3 MB, free: 6.242 MB / 398.1 MB Notification: Performance of Templates: time 0.0311/0.4376, allocations: 19.2 MB / 0.5024 GB, free: 3.121 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 9.880501521984115]