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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001174/0.001174, allocations: 113.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001318, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2838, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01649/0.3004, allocations: 15.96 MB / 425.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.3108, allocations: 6.913 MB / 432.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.3119, allocations: 23.88 kB / 432.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.313, allocations: 330 kB / 433.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003152/0.3162, allocations: 1.081 MB / 434.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.3212, allocations: 1.795 MB / 436 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00325/0.3245, allocations: 2.148 MB / 438.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.3255, allocations: 0.5996 MB / 438.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.3271, allocations: 0.8176 MB / 439.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3282, allocations: 0.7902 MB / 440.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.3284, allocations: 80 kB / 440.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.3311, allocations: 1.244 MB / 441.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003371/0.3314, allocations: 319.1 kB / 442 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.332, allocations: 458 kB / 442.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002701/0.3347, allocations: 1.86 MB / 444.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3347, allocations: 0 / 444.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3347, allocations: 0 / 444.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.3347, allocations: 4 kB / 444.3 MB, free: 15.09 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.002623/0.3373, allocations: 1.27 MB / 445.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3374, allocations: 8.031 kB / 445.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003278/0.3377, allocations: 99.91 kB / 445.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009214/0.3387, allocations: 0.6209 MB / 446.3 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3388, allocations: 108.6 kB / 446.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.3389, allocations: 67.81 kB / 446.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.3403, allocations: 0.8924 MB / 447.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.3403, allocations: 0 / 447.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/0.3404, allocations: 27.98 kB / 447.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.551e-05/0.3405, allocations: 49.22 kB / 447.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.3418, allocations: 0.8444 MB / 448.3 MB, free: 10.97 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.005315/0.3471, allocations: 3.446 MB / 451.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.3486, allocations: 0.6618 MB / 452.4 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007831/0.3494, allocations: 370.3 kB / 452.8 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002806/0.3523, allocations: 2.031 MB / 454.8 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.3523, allocations: 43.06 kB / 454.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.295e-06/0.3523, allocations: 0 / 454.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007059/0.3594, allocations: 2.831 MB / 457.7 MB, free: 1.125 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.3595, allocations: 85.67 kB / 457.7 MB, free: 1.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008144/0.3603, allocations: 0.6837 MB / 458.4 MB, free: 336 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.89e-05/0.3604, allocations: 37.7 kB / 458.5 MB, free: 292 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.3607, allocations: 340.6 kB / 458.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.361, allocations: 232.6 kB / 459 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.3612, allocations: 154.5 kB / 459.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3614, allocations: 390.7 kB / 459.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/0.362, allocations: 368.6 kB / 459.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006865/0.3627, allocations: 0.5152 MB / 460.4 MB, free: 14.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.364, allocations: 0.8638 MB / 461.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.364, allocations: 0 / 461.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002066/0.3661, allocations: 1.165 MB / 462.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.3661, allocations: 8 kB / 462.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.3661, allocations: 4 kB / 462.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.3674, allocations: 456.5 kB / 462.9 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.368, allocations: 155.8 kB / 463.1 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.3692, allocations: 1.017 MB / 464.1 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005729/0.3698, allocations: 28.03 kB / 464.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.611e-05/0.3699, allocations: 35.98 kB / 464.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008917/0.3708, allocations: 0.5331 MB / 464.7 MB, free: 9.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007876/0.3716, allocations: 0.5132 MB / 465.2 MB, free: 9.293 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001197/0.3728, allocations: 0.849 MB / 466.1 MB, free: 8.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.775e-06/0.3728, allocations: 7.922 kB / 466.1 MB, free: 8.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001899/0.3747, allocations: 1.098 MB / 467.2 MB, free: 7.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3747, allocations: 8 kB / 467.2 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3747, allocations: 4 kB / 467.2 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000764/0.3755, allocations: 312.8 kB / 467.5 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/0.3761, allocations: 167.8 kB / 467.6 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.3772, allocations: 0.9034 MB / 468.5 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000573/0.3777, allocations: 32.03 kB / 468.6 MB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.116e-05/0.3778, allocations: 35.98 kB / 468.6 MB, free: 5.789 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.0003216/0.3782, allocations: 228.1 kB / 468.8 MB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.3783, allocations: 83.05 kB / 468.9 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.3803, allocations: 1.091 MB / 470 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.3803, allocations: 8 kB / 470 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3803, allocations: 0 / 470 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3804, allocations: 3.984 kB / 470 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.3835, allocations: 2.019 MB / 472 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.3835, allocations: 0 / 472 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.3841, allocations: 115.9 kB / 472.1 MB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.3853, allocations: 444.5 kB / 472.6 MB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.338e-05/0.3853, allocations: 15.98 kB / 472.6 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.3865, allocations: 1.032 MB / 473.6 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3865, allocations: 3.938 kB / 473.6 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.3889, allocations: 1.593 MB / 475.2 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003953/0.3893, allocations: 244.1 kB / 475.5 MB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.3895, allocations: 16 kB / 475.5 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006557/0.3901, allocations: 31.97 kB / 475.5 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.3903, allocations: 60.52 kB / 475.6 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.3904, allocations: 27.98 kB / 475.6 MB, free: 14.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006531/0.391, allocations: 483 kB / 476.1 MB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.391, allocations: 0 / 476.1 MB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001707/0.3927, allocations: 0.5856 MB / 476.7 MB, free: 13.6 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.001203/0.394, allocations: 494.8 kB / 477.1 MB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003034/0.397, allocations: 1.412 MB / 478.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.397, allocations: 0 / 478.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009462/0.398, allocations: 467.5 kB / 479 MB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.3998, allocations: 388.2 kB / 479.4 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.4033, allocations: 1.778 MB / 481.2 MB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007848/0.4041, allocations: 0.9833 MB / 482.1 MB, free: 8.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.4044, allocations: 91.41 kB / 482.2 MB, free: 7.949 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4044, allocations: 0 / 482.2 MB, free: 7.949 MB / 398.1 MB Notification: Performance of Templates: time 0.02833/0.4328, allocations: 19.27 MB / 0.4898 GB, free: 4.746 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches