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.001735/0.001735, allocations: 109.1 kB / 21.18 MB, free: 0.7852 MB / 14.72 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.002161/0.002161, allocations: 217.3 kB / 24.49 MB, free: 4.172 MB / 14.72 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.558/1.558, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.1..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.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 63.91 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3124, allocations: 53.4 MB / 432.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01976/0.3322, allocations: 16.22 MB / 448.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01103/0.3432, allocations: 6.952 MB / 455.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.3442, allocations: 31.69 kB / 455.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.3453, allocations: 341.9 kB / 456 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003244/0.3486, allocations: 1.124 MB / 457.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005313/0.3539, allocations: 1.823 MB / 458.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004083/0.358, allocations: 2.233 MB / 461.1 MB, free: 9.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.3593, allocations: 0.5101 MB / 461.7 MB, free: 9.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002274/0.3616, allocations: 0.8411 MB / 462.5 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001922/0.3635, allocations: 0.8564 MB / 463.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003824/0.3639, allocations: 80 kB / 463.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003438/0.3673, allocations: 1.26 MB / 464.7 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007361/0.3681, allocations: 334.9 kB / 465 MB, free: 6.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.3691, allocations: 454 kB / 465.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004716/0.3738, allocations: 1.877 MB / 467.3 MB, free: 3.742 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3738, allocations: 4 kB / 467.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3738, allocations: 0 / 467.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.3738, allocations: 0 / 467.3 MB, free: 3.738 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.003279/0.3771, allocations: 1.22 MB / 468.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3771, allocations: 8.031 kB / 468.6 MB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003674/0.3775, allocations: 104.4 kB / 468.7 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.3787, allocations: 0.5674 MB / 469.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.3789, allocations: 160.1 kB / 469.4 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.379, allocations: 51.98 kB / 469.4 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3805, allocations: 0.8884 MB / 470.3 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.3805, allocations: 7.953 kB / 470.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.863e-05/0.3806, allocations: 31.92 kB / 470.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.914e-05/0.3807, allocations: 49.28 kB / 470.4 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.3822, allocations: 0.8444 MB / 471.3 MB, free: 15.7 MB / 382.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.006388/0.3886, allocations: 3.287 MB / 474.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.3896, allocations: 0.6263 MB / 475.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005596/0.3902, allocations: 346.2 kB / 475.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002781/0.393, allocations: 1.325 MB / 476.8 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/0.393, allocations: 47 kB / 476.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.204e-06/0.393, allocations: 0 / 476.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007234/0.4003, allocations: 2.697 MB / 479.6 MB, free: 7.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.4003, allocations: 85.77 kB / 479.7 MB, free: 7.051 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000961/0.4013, allocations: 0.6759 MB / 480.3 MB, free: 6.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.4014, allocations: 41.7 kB / 480.4 MB, free: 6.316 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002901/0.4017, allocations: 348.9 kB / 480.7 MB, free: 5.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.4019, allocations: 238 kB / 481 MB, free: 5.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002617/0.4022, allocations: 150.6 kB / 481.1 MB, free: 5.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.4024, allocations: 386.8 kB / 481.5 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006438/0.403, allocations: 368.6 kB / 481.8 MB, free: 4.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008218/0.4039, allocations: 0.5217 MB / 482.4 MB, free: 4.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.4052, allocations: 0.8681 MB / 483.2 MB, free: 3.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.4052, allocations: 0 / 483.2 MB, free: 3.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002183/0.4074, allocations: 1.158 MB / 484.4 MB, free: 2.152 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.4074, allocations: 10.53 kB / 484.4 MB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.4075, allocations: 11.98 kB / 484.4 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.4088, allocations: 452.3 kB / 484.9 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006763/0.4095, allocations: 159.8 kB / 485 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.4109, allocations: 1.017 MB / 486 MB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/0.4115, allocations: 32.03 kB / 486.1 MB, free: 468 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.219e-05/0.4116, allocations: 39.98 kB / 486.1 MB, free: 428 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009259/0.4125, allocations: 0.5292 MB / 486.6 MB, free: 15.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007607/0.4133, allocations: 0.5156 MB / 487.1 MB, free: 15.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001323/0.4146, allocations: 0.8415 MB / 488 MB, free: 14.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.8e-06/0.4146, allocations: 3.938 kB / 488 MB, free: 14.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002066/0.4167, allocations: 1.103 MB / 489.1 MB, free: 13.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.4167, allocations: 12.12 kB / 489.1 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.4167, allocations: 4 kB / 489.1 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007536/0.4175, allocations: 312.7 kB / 489.4 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000688/0.4181, allocations: 171.7 kB / 489.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.4193, allocations: 0.8996 MB / 490.5 MB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006339/0.4199, allocations: 31.98 kB / 490.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.56e-05/0.42, allocations: 35.98 kB / 490.5 MB, free: 11.8 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.0003246/0.4203, allocations: 236 kB / 490.8 MB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.4205, allocations: 83.48 kB / 490.9 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002106/0.4226, allocations: 1.08 MB / 491.9 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.4226, allocations: 8 kB / 491.9 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.4226, allocations: 0 / 491.9 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.4226, allocations: 3.984 kB / 491.9 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003421/0.426, allocations: 1.972 MB / 493.9 MB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.426, allocations: 0 / 493.9 MB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/0.4266, allocations: 123.9 kB / 494 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.4278, allocations: 436.5 kB / 494.5 MB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.685e-05/0.4279, allocations: 19.98 kB / 494.5 MB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.4292, allocations: 1.025 MB / 495.5 MB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.4292, allocations: 7.938 kB / 495.5 MB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.4319, allocations: 1.593 MB / 497.1 MB, free: 5.113 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005261/0.4324, allocations: 175.3 kB / 497.3 MB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.4325, allocations: 12 kB / 497.3 MB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005035/0.433, allocations: 27.98 kB / 497.3 MB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.4332, allocations: 68.42 kB / 497.4 MB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/0.4332, allocations: 27.98 kB / 497.4 MB, free: 4.809 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006682/0.4339, allocations: 487 kB / 497.9 MB, free: 4.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4339, allocations: 0 / 497.9 MB, free: 4.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001642/0.4355, allocations: 0.5849 MB / 498.5 MB, free: 3.754 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.001118/0.4367, allocations: 497.8 kB / 499 MB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.4398, allocations: 1.323 MB / 0.4886 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4398, allocations: 0 / 0.4886 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009996/0.4408, allocations: 435.5 kB / 0.489 GB, free: 1.512 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.4427, allocations: 384.8 kB / 0.4893 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003786/0.4465, allocations: 1.8 MB / 0.4911 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006925/0.4472, allocations: 0.991 MB / 0.4921 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.4475, allocations: 91.28 kB / 0.4922 GB, free: 14.2 MB / 414.1 MB Notification: Performance of SimCode: time 1.783e-06/0.4475, allocations: 0 / 0.4922 GB, free: 14.2 MB / 414.1 MB Notification: Performance of Templates: time 0.03355/0.481, allocations: 19.28 MB / 0.511 GB, free: 10.98 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.972377246944234]