Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001385/0.001385, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001476/0.001476, allocations: 202.1 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002551/0.002551, allocations: 55.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2609, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01916/0.2801, allocations: 14.67 MB / 446.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.2905, allocations: 6.285 MB / 452.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008042/0.2913, allocations: 27.75 kB / 452.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009531/0.2922, allocations: 322 kB / 452.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002939/0.2952, allocations: 1.12 MB / 454 MB, free: 228 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00457/0.2997, allocations: 1.819 MB / 455.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003071/0.3028, allocations: 2.233 MB / 458 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009198/0.3037, allocations: 0.4985 MB / 458.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.3053, allocations: 0.8488 MB / 459.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.3067, allocations: 0.8564 MB / 460.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002223/0.307, allocations: 80 kB / 460.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.3092, allocations: 1.065 MB / 461.4 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004132/0.3096, allocations: 319 kB / 461.7 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005733/0.3102, allocations: 390.4 kB / 462.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0028/0.313, allocations: 1.842 MB / 463.9 MB, free: 6.266 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.313, allocations: 0 / 463.9 MB, free: 6.266 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.313, allocations: 0 / 463.9 MB, free: 6.266 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.595e-05/0.313, allocations: 0 / 463.9 MB, free: 6.266 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.00293/0.3159, allocations: 1.216 MB / 465.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.316, allocations: 12.03 kB / 465.1 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003401/0.3163, allocations: 100.4 kB / 465.2 MB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.3175, allocations: 0.5751 MB / 465.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.3176, allocations: 156.1 kB / 466 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.3177, allocations: 59.92 kB / 466 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.3195, allocations: 1.172 MB / 467.2 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.3195, allocations: 7.922 kB / 467.2 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.3196, allocations: 27.98 kB / 467.2 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.88e-05/0.3196, allocations: 49.28 kB / 467.3 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.3211, allocations: 0.8365 MB / 468.1 MB, free: 1.879 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.005492/0.3266, allocations: 2.59 MB / 470.7 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3278, allocations: 0.6307 MB / 471.3 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005899/0.3284, allocations: 338.2 kB / 471.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00278/0.3311, allocations: 1.201 MB / 472.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/0.3312, allocations: 50.98 kB / 472.9 MB, free: 12.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.184e-06/0.3312, allocations: 0 / 472.9 MB, free: 12.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007182/0.3384, allocations: 2.686 MB / 475.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/0.3385, allocations: 81.77 kB / 475.7 MB, free: 10.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007523/0.3392, allocations: 0.5496 MB / 476.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.21e-05/0.3393, allocations: 37.7 kB / 476.3 MB, free: 9.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.3396, allocations: 364.7 kB / 476.6 MB, free: 9.211 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.3398, allocations: 237.9 kB / 476.9 MB, free: 8.977 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002795/0.3401, allocations: 150.6 kB / 477 MB, free: 8.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3403, allocations: 378.7 kB / 477.4 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/0.341, allocations: 372.6 kB / 477.7 MB, free: 8.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008073/0.3418, allocations: 0.5504 MB / 478.3 MB, free: 7.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.3432, allocations: 0.8641 MB / 479.2 MB, free: 6.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3432, allocations: 4 kB / 479.2 MB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002209/0.3454, allocations: 1.142 MB / 480.3 MB, free: 5.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3454, allocations: 8 kB / 480.3 MB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3454, allocations: 7.984 kB / 480.3 MB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.3468, allocations: 456.9 kB / 480.8 MB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006928/0.3475, allocations: 155.8 kB / 480.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.3488, allocations: 1.028 MB / 481.9 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005679/0.3493, allocations: 28.03 kB / 482 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.133e-05/0.3494, allocations: 35.98 kB / 482 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009096/0.3503, allocations: 0.5369 MB / 482.5 MB, free: 3.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007968/0.3511, allocations: 0.5333 MB / 483.1 MB, free: 2.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001386/0.3525, allocations: 0.8494 MB / 483.9 MB, free: 1.598 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/0.3525, allocations: 0 / 483.9 MB, free: 1.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002052/0.3546, allocations: 1.091 MB / 485 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3546, allocations: 8 kB / 485 MB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3546, allocations: 7.938 kB / 485 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007475/0.3553, allocations: 316.9 kB / 485.3 MB, free: 172 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.356, allocations: 163.8 kB / 485.5 MB, free: 8 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.3571, allocations: 0.9113 MB / 486.4 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005688/0.3577, allocations: 31.98 kB / 486.4 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-05/0.3578, allocations: 35.98 kB / 486.5 MB, free: 15 MB / 398.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.0002915/0.3581, allocations: 224.1 kB / 486.7 MB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3582, allocations: 71.58 kB / 486.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.3603, allocations: 1.075 MB / 487.8 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.3604, allocations: 15.92 kB / 487.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3604, allocations: 4 kB / 487.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3604, allocations: 0 / 487.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/0.3637, allocations: 1.785 MB / 489.7 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3637, allocations: 7.938 kB / 489.7 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006128/0.3643, allocations: 119.8 kB / 489.8 MB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.3655, allocations: 440.5 kB / 490.2 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.095e-05/0.3656, allocations: 23.98 kB / 490.2 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.3669, allocations: 1.021 MB / 491.2 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3669, allocations: 0 / 491.2 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.3696, allocations: 1.593 MB / 492.8 MB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004623/0.3701, allocations: 155.4 kB / 493 MB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3702, allocations: 16 kB / 493 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.3707, allocations: 27.98 kB / 493 MB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.3708, allocations: 60.53 kB / 493.1 MB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/0.3709, allocations: 27.98 kB / 493.1 MB, free: 8.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005219/0.3714, allocations: 378.8 kB / 493.5 MB, free: 7.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3714, allocations: 0 / 493.5 MB, free: 7.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001575/0.373, allocations: 0.5849 MB / 494.1 MB, free: 7.297 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.001096/0.3741, allocations: 493.8 kB / 494.6 MB, free: 6.805 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.3771, allocations: 1.318 MB / 495.9 MB, free: 5.484 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3771, allocations: 0 / 495.9 MB, free: 5.484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009609/0.3781, allocations: 448.1 kB / 496.3 MB, free: 5.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.3798, allocations: 361 kB / 496.7 MB, free: 4.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.3831, allocations: 1.741 MB / 498.4 MB, free: 2.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.3836, allocations: 408.4 kB / 498.8 MB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008847/0.3845, allocations: 293.8 kB / 499.1 MB, free: 2.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.3846, allocations: 67.42 kB / 499.2 MB, free: 2.16 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3846, allocations: 0 / 499.2 MB, free: 2.16 MB / 398.1 MB Notification: Performance of Templates: time 0.0378/0.4224, allocations: 23.29 MB / 0.5102 GB, free: 11.17 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.554125104099512]