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.001059/0.001059, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 55.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3247, allocations: 50.55 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01903/0.3437, allocations: 15.96 MB / 425.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009854/0.3536, allocations: 6.913 MB / 432.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008078/0.3545, allocations: 19.88 kB / 432.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.3555, allocations: 345.9 kB / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002871/0.3585, allocations: 1.092 MB / 433.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004569/0.363, allocations: 1.783 MB / 435.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003902/0.367, allocations: 2.159 MB / 437.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.3686, allocations: 0.6035 MB / 438.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002342/0.371, allocations: 0.8215 MB / 438.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/0.3728, allocations: 0.7902 MB / 439.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005102/0.3733, allocations: 80 kB / 439.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003077/0.3764, allocations: 1.244 MB / 441 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005631/0.377, allocations: 315.1 kB / 441.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000945/0.3779, allocations: 457.9 kB / 441.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003672/0.3816, allocations: 1.86 MB / 443.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3816, allocations: 0 / 443.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3816, allocations: 0 / 443.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.729e-05/0.3817, allocations: 0 / 443.7 MB, free: 15.04 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.003539/0.3852, allocations: 1.274 MB / 444.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.3853, allocations: 8.031 kB / 444.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004368/0.3857, allocations: 95.91 kB / 445 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.387, allocations: 0.6248 MB / 445.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.3871, allocations: 104.7 kB / 445.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.3872, allocations: 59.89 kB / 445.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.3889, allocations: 0.8961 MB / 446.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.3889, allocations: 0 / 446.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.689e-05/0.389, allocations: 27.98 kB / 446.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-05/0.3891, allocations: 49.28 kB / 446.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.3907, allocations: 0.8521 MB / 447.6 MB, free: 10.91 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.005799/0.3965, allocations: 3.446 MB / 451.1 MB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.3976, allocations: 0.6579 MB / 451.7 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005445/0.3981, allocations: 370.3 kB / 452.1 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002842/0.401, allocations: 2.031 MB / 454.1 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.401, allocations: 47 kB / 454.2 MB, free: 3.965 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.284e-06/0.401, allocations: 0 / 454.2 MB, free: 3.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006814/0.4078, allocations: 2.835 MB / 457 MB, free: 1.062 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.4079, allocations: 85.67 kB / 457.1 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008174/0.4087, allocations: 0.6876 MB / 457.8 MB, free: 268 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.4088, allocations: 37.7 kB / 457.8 MB, free: 224 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000256/0.4091, allocations: 336.5 kB / 458.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.4093, allocations: 228.6 kB / 458.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/0.4095, allocations: 154.5 kB / 458.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.4097, allocations: 386.8 kB / 458.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006074/0.4103, allocations: 368.6 kB / 459.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/0.4111, allocations: 0.5212 MB / 459.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.4124, allocations: 0.8677 MB / 460.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4124, allocations: 0 / 460.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001945/0.4144, allocations: 1.157 MB / 461.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.4144, allocations: 11.94 kB / 461.8 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4144, allocations: 4 kB / 461.8 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.4157, allocations: 456.8 kB / 462.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00064/0.4163, allocations: 159.8 kB / 462.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.4175, allocations: 1.016 MB / 463.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/0.4181, allocations: 32.03 kB / 463.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.566e-05/0.4182, allocations: 31.98 kB / 463.5 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008086/0.419, allocations: 0.5331 MB / 464 MB, free: 9.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006907/0.4197, allocations: 0.516 MB / 464.6 MB, free: 9.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001225/0.4209, allocations: 0.8451 MB / 465.4 MB, free: 8.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.701e-06/0.421, allocations: 7.922 kB / 465.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001875/0.4228, allocations: 1.098 MB / 466.5 MB, free: 7.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.4229, allocations: 8 kB / 466.5 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4229, allocations: 4 kB / 466.5 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007018/0.4236, allocations: 313 kB / 466.8 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/0.4242, allocations: 167.8 kB / 467 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009785/0.4252, allocations: 0.9111 MB / 467.9 MB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.4258, allocations: 28.03 kB / 467.9 MB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-05/0.4258, allocations: 39.92 kB / 468 MB, free: 5.727 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.0002557/0.4261, allocations: 228.1 kB / 468.2 MB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.4263, allocations: 75.16 kB / 468.3 MB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.4282, allocations: 1.087 MB / 469.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.4282, allocations: 12 kB / 469.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4283, allocations: 0 / 469.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.4283, allocations: 7.984 kB / 469.4 MB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003025/0.4313, allocations: 2.016 MB / 471.4 MB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.4313, allocations: 0 / 471.4 MB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005738/0.4319, allocations: 119.9 kB / 471.5 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.433, allocations: 440.5 kB / 471.9 MB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.4331, allocations: 23.92 kB / 472 MB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.4343, allocations: 1.021 MB / 473 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4343, allocations: 3.938 kB / 473 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00238/0.4367, allocations: 1.597 MB / 474.6 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003854/0.4371, allocations: 244.1 kB / 474.8 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.4372, allocations: 16 kB / 474.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/0.4378, allocations: 31.97 kB / 474.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.4379, allocations: 56.52 kB / 474.9 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.446e-05/0.438, allocations: 31.97 kB / 474.9 MB, free: 14.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005887/0.4386, allocations: 483 kB / 475.4 MB, free: 14.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4386, allocations: 4 kB / 475.4 MB, free: 14.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001527/0.4401, allocations: 0.5856 MB / 476 MB, free: 13.54 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.001021/0.4411, allocations: 490.4 kB / 476.5 MB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002903/0.4441, allocations: 1.411 MB / 477.9 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.4441, allocations: 0 / 477.9 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009596/0.445, allocations: 469.1 kB / 478.4 MB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.4466, allocations: 384.6 kB / 478.7 MB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003162/0.4498, allocations: 1.734 MB / 480.5 MB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000551/0.4503, allocations: 0.9988 MB / 481.5 MB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008398/0.4512, allocations: 306.5 kB / 481.8 MB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.4514, allocations: 75.41 kB / 481.8 MB, free: 7.641 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4514, allocations: 0 / 481.8 MB, free: 7.641 MB / 398.1 MB Notification: Performance of Templates: time 0.03747/0.4889, allocations: 23.2 MB / 0.4932 GB, free: 0.5703 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches