Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008083/0.0008084, allocations: 92.72 kB / 16.65 MB, free: 6.59 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.001017/0.001017, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.348/1.348, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002602/0.0002602, allocations: 8.469 kB / 301.4 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08459, allocations: 50.41 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1994/0.284, allocations: 30.73 MB / 382.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01458/0.2986, allocations: 10.66 MB / 393.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.3003, allocations: 43.69 kB / 393.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.3015, allocations: 423.9 kB / 393.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004516/0.306, allocations: 1.73 MB / 395.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006259/0.3123, allocations: 2.321 MB / 397.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005459/0.3177, allocations: 5.199 MB / 402.9 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002195/0.32, allocations: 1.009 MB / 403.9 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003692/0.3237, allocations: 1.295 MB / 405.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003053/0.3268, allocations: 1.395 MB / 406.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006392/0.3274, allocations: 85.5 kB / 406.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00514/0.3326, allocations: 1.982 MB / 408.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009239/0.3335, allocations: 0.5027 MB / 409.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.3349, allocations: 0.7456 MB / 409.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006233/0.3412, allocations: 3.233 MB / 413.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.3412, allocations: 3.984 kB / 413.2 MB, free: 8.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3412, allocations: 0 / 413.2 MB, free: 8.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001069/0.3414, allocations: 0 / 413.2 MB, free: 8.473 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005799/0.3472, allocations: 1.769 MB / 414.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3472, allocations: 8.031 kB / 414.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008808/0.3481, allocations: 170.1 kB / 415.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.3502, allocations: 0.8979 MB / 416 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002482/0.3505, allocations: 242.5 kB / 416.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003842/0.3509, allocations: 99.97 kB / 416.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003567/0.3545, allocations: 1.794 MB / 418.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.477e-05/0.3545, allocations: 3.938 kB / 418.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.3547, allocations: 47.91 kB / 418.2 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.3549, allocations: 110 kB / 418.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003505/0.3584, allocations: 1.776 MB / 420.1 MB, free: 1.371 MB / 318.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.01313/0.3715, allocations: 6.956 MB / 427 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.3744, allocations: 1.505 MB / 428.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.3759, allocations: 0.8814 MB / 429.4 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000896/0.3768, allocations: 0.6607 MB / 430.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.3768, allocations: 47.56 kB / 430.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 2.936e-06/0.3769, allocations: 0 / 430.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01713/0.394, allocations: 6.676 MB / 436.8 MB, free: 76 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.3941, allocations: 171.5 kB / 437 MB, free: 15.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.396, allocations: 1.107 MB / 438.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000173/0.3962, allocations: 49.7 kB / 438.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004451/0.3966, allocations: 0.5004 MB / 438.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000443/0.3971, allocations: 437.8 kB / 439.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.3973, allocations: 113.7 kB / 439.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3974, allocations: 361.9 kB / 439.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001456/0.3989, allocations: 0.8354 MB / 440.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.4006, allocations: 1.076 MB / 441.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002923/0.4035, allocations: 1.812 MB / 443.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4035, allocations: 0 / 443.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004844/0.4084, allocations: 2.616 MB / 445.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001621/0.4085, allocations: 231.6 kB / 446.1 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4086, allocations: 4 kB / 446.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00381/0.4124, allocations: 1.297 MB / 447.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009576/0.4134, allocations: 219.6 kB / 447.6 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006757/0.4201, allocations: 6.368 MB / 454 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.4214, allocations: 99.84 kB / 454.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.4216, allocations: 55.97 kB / 454.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.4216, allocations: 4 kB / 454.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004359/0.426, allocations: 2.35 MB / 456.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.426, allocations: 4.375 kB / 456.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002629/0.4287, allocations: 1.023 MB / 457.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.4297, allocations: 227.6 kB / 457.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.4364, allocations: 6.107 MB / 463.8 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.4379, allocations: 103.8 kB / 463.9 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002669/0.4382, allocations: 51.97 kB / 464 MB, free: 3.836 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0009263/0.4391, allocations: 460.7 kB / 464.4 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/0.4395, allocations: 134.3 kB / 464.6 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005554/0.4451, allocations: 2.806 MB / 467.4 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.4451, allocations: 12 kB / 467.4 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.4452, allocations: 8 kB / 467.4 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.4452, allocations: 7.969 kB / 467.4 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007969/0.4532, allocations: 4.526 MB / 471.9 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.4532, allocations: 0 / 471.9 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008314/0.454, allocations: 159.8 kB / 472.1 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003601/0.4576, allocations: 1.298 MB / 473.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/0.4579, allocations: 39.97 kB / 473.4 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006652/0.4645, allocations: 6.395 MB / 479.8 MB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4645, allocations: 0 / 479.8 MB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00692/0.4715, allocations: 3.956 MB / 483.8 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009073/0.4724, allocations: 447 kB / 484.2 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003021/0.4727, allocations: 24 kB / 484.2 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.474, allocations: 103.8 kB / 484.3 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/0.4743, allocations: 141.1 kB / 484.5 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.4745, allocations: 51.97 kB / 484.5 MB, free: 14.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001132/0.4756, allocations: 0.7493 MB / 485.3 MB, free: 14.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4757, allocations: 0 / 485.3 MB, free: 14.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003081/0.4787, allocations: 1.05 MB / 486.3 MB, free: 12.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001928/0.4807, allocations: 0.7338 MB / 487 MB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007744/0.4884, allocations: 3.802 MB / 490.8 MB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.4885, allocations: 0 / 490.8 MB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003364/0.4918, allocations: 1.43 MB / 492.3 MB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/0.4955, allocations: 0.5928 MB / 492.9 MB, free: 6.348 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0073/0.5028, allocations: 3.707 MB / 496.6 MB, free: 2.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.5039, allocations: 1.264 MB / 497.8 MB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002237/0.5061, allocations: 0.572 MB / 498.4 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/0.5066, allocations: 123.3 kB / 498.5 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5066, allocations: 0 / 498.5 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of Templates: time 0.0693/0.5759, allocations: 43.86 MB / 0.5297 GB, free: 5.078 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches