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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002/0.002, allocations: 188.5 kB / 18.67 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 47.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3038, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01584/0.3198, allocations: 15.84 MB / 417.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009633/0.3294, allocations: 6.897 MB / 424.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009201/0.3304, allocations: 23.88 kB / 424.2 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009411/0.3313, allocations: 334 kB / 424.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002711/0.3341, allocations: 1.061 MB / 425.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004295/0.3384, allocations: 1.802 MB / 427.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002798/0.3412, allocations: 2.144 MB / 429.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009527/0.3422, allocations: 0.5997 MB / 430.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.3438, allocations: 0.7942 MB / 430.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.345, allocations: 0.7941 MB / 431.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.3452, allocations: 80 kB / 431.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.3481, allocations: 1.217 MB / 433 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004141/0.3485, allocations: 319.2 kB / 433.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008983/0.3494, allocations: 461.9 kB / 433.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003347/0.3528, allocations: 1.84 MB / 435.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3528, allocations: 3.938 kB / 435.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3528, allocations: 0 / 435.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.079e-05/0.3528, allocations: 3.984 kB / 435.6 MB, free: 6.543 MB / 350.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.002784/0.3556, allocations: 1.258 MB / 436.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.3557, allocations: 8.031 kB / 436.8 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003401/0.356, allocations: 103.9 kB / 436.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009447/0.357, allocations: 0.6247 MB / 437.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.3571, allocations: 100.7 kB / 437.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.3572, allocations: 59.92 kB / 437.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3588, allocations: 0.8963 MB / 438.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.3588, allocations: 0 / 438.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.711e-05/0.3589, allocations: 23.98 kB / 438.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.269e-05/0.359, allocations: 61.2 kB / 438.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3604, allocations: 0.8405 MB / 439.5 MB, free: 2.445 MB / 350.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.005871/0.3663, allocations: 3.458 MB / 443 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.3674, allocations: 0.6727 MB / 443.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005791/0.368, allocations: 366.3 kB / 444 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003236/0.3713, allocations: 2.035 MB / 446.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.3713, allocations: 47.06 kB / 446.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.946e-06/0.3714, allocations: 0 / 446.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007491/0.3789, allocations: 2.828 MB / 448.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.379, allocations: 81.67 kB / 449 MB, free: 8.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009925/0.38, allocations: 0.6875 MB / 449.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.126e-05/0.3801, allocations: 41.7 kB / 449.8 MB, free: 7.734 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.3804, allocations: 336.4 kB / 450.1 MB, free: 7.398 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.3806, allocations: 228.8 kB / 450.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/0.3809, allocations: 146.6 kB / 450.4 MB, free: 7.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3811, allocations: 386.8 kB / 450.8 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.3817, allocations: 372.6 kB / 451.2 MB, free: 6.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007201/0.3824, allocations: 0.523 MB / 451.7 MB, free: 5.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3837, allocations: 0.8637 MB / 452.6 MB, free: 4.758 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3838, allocations: 0 / 452.6 MB, free: 4.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002185/0.386, allocations: 1.161 MB / 453.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.386, allocations: 4 kB / 453.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.386, allocations: 8.562 kB / 453.8 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.3874, allocations: 456.4 kB / 454.2 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/0.3881, allocations: 159.7 kB / 454.4 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3894, allocations: 1.021 MB / 455.4 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006814/0.3901, allocations: 27.98 kB / 455.4 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.554e-05/0.3902, allocations: 35.98 kB / 455.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008651/0.3911, allocations: 0.533 MB / 456 MB, free: 1.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007118/0.3918, allocations: 0.516 MB / 456.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001276/0.3931, allocations: 0.8451 MB / 457.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.573e-06/0.3931, allocations: 3.938 kB / 457.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002035/0.3952, allocations: 1.102 MB / 458.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.3952, allocations: 4 kB / 458.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.3952, allocations: 8.562 kB / 458.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007998/0.396, allocations: 316.6 kB / 458.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.3967, allocations: 167.8 kB / 458.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.3978, allocations: 0.8996 MB / 459.8 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006947/0.3985, allocations: 39.95 kB / 459.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.752e-05/0.3986, allocations: 31.98 kB / 459.9 MB, free: 13.24 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.0003147/0.3989, allocations: 220.1 kB / 460.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/0.3992, allocations: 83.06 kB / 460.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.4014, allocations: 1.099 MB / 461.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.4015, allocations: 8 kB / 461.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4015, allocations: 0 / 461.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4015, allocations: 3.984 kB / 461.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003497/0.405, allocations: 1.996 MB / 463.3 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.405, allocations: 0 / 463.3 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006105/0.4056, allocations: 123.8 kB / 463.4 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.4069, allocations: 444.5 kB / 463.8 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.518e-05/0.407, allocations: 20 kB / 463.9 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.4082, allocations: 1.028 MB / 464.9 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4082, allocations: 3.938 kB / 464.9 MB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.4107, allocations: 1.6 MB / 466.5 MB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005297/0.4112, allocations: 244.1 kB / 466.7 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.4114, allocations: 8 kB / 466.7 MB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006256/0.4121, allocations: 31.97 kB / 466.8 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.4122, allocations: 60.52 kB / 466.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.301e-05/0.4123, allocations: 35.97 kB / 466.9 MB, free: 6.105 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007786/0.4131, allocations: 479 kB / 467.3 MB, free: 5.645 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4131, allocations: 0 / 467.3 MB, free: 5.645 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001802/0.4149, allocations: 0.5856 MB / 467.9 MB, free: 5.059 MB / 382.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.001302/0.4162, allocations: 486.6 kB / 468.4 MB, free: 4.574 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003109/0.4194, allocations: 1.412 MB / 469.8 MB, free: 3.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4194, allocations: 0 / 469.8 MB, free: 3.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.4204, allocations: 467.5 kB / 470.3 MB, free: 2.703 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.4225, allocations: 372.1 kB / 470.6 MB, free: 2.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.4261, allocations: 1.774 MB / 472.4 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.4267, allocations: 0.9989 MB / 473.4 MB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.427, allocations: 79.41 kB / 473.5 MB, free: 15.43 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.427, allocations: 0 / 473.5 MB, free: 15.43 MB / 398.1 MB Notification: Performance of Templates: time 0.02866/0.4557, allocations: 19.05 MB / 492.5 MB, free: 12.46 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (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) 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) Reference file matches