Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002031/0.00203, allocations: 108.3 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.002713/0.002713, allocations: 175.1 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.173/3.173, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 39.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8439/0.8461, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.07938/0.9256, allocations: 28.68 MB / 430.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04396/0.9697, allocations: 15.01 MB / 445.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004469/0.9743, allocations: 43.75 kB / 445.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004652/0.9791, allocations: 0.5979 MB / 445.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01484/0.9941, allocations: 2.323 MB / 448 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02229/1.016, allocations: 3.737 MB / 451.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01386/1.03, allocations: 4.143 MB / 455.9 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004699/1.035, allocations: 1.16 MB / 457.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007852/1.043, allocations: 1.573 MB / 458.7 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006781/1.05, allocations: 1.659 MB / 460.3 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001613/1.052, allocations: 164 kB / 460.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01308/1.065, allocations: 2.418 MB / 462.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00298/1.068, allocations: 0.6272 MB / 463.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004519/1.073, allocations: 0.8672 MB / 464.4 MB, free: 9.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01844/1.091, allocations: 3.721 MB / 468.1 MB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.939e-05/1.091, allocations: 0 / 468.1 MB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.949e-06/1.091, allocations: 0 / 468.1 MB, free: 5.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001566/1.091, allocations: 0 / 468.1 MB, free: 5.926 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.01466/1.106, allocations: 2.204 MB / 470.3 MB, free: 3.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000128/1.106, allocations: 15.89 kB / 470.3 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001944/1.108, allocations: 174.1 kB / 470.5 MB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004897/1.113, allocations: 1.057 MB / 471.6 MB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003864/1.114, allocations: 179 kB / 471.7 MB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008107/1.115, allocations: 104 kB / 471.8 MB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006529/1.121, allocations: 1.753 MB / 473.6 MB, free: 284 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.992e-05/1.121, allocations: 0 / 473.6 MB, free: 284 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/1.122, allocations: 47.97 kB / 473.6 MB, free: 236 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003218/1.122, allocations: 117.9 kB / 473.7 MB, free: 116 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005944/1.128, allocations: 1.78 MB / 475.5 MB, free: 14.32 MB / 398.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.02504/1.153, allocations: 6.699 MB / 482.2 MB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004088/1.157, allocations: 1.238 MB / 483.5 MB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002473/1.16, allocations: 0.7651 MB / 484.2 MB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01704/1.177, allocations: 4.279 MB / 488.5 MB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001535/1.177, allocations: 47.56 kB / 488.6 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002287/1.179, allocations: 174.7 kB / 488.7 MB, free: 368 kB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 2.155e-05/1.179, allocations: 0 / 488.7 MB, free: 368 kB / 398.1 MB Notification: Performance of matching and sorting (n=112): time 0.04408/1.224, allocations: 5.697 MB / 494.4 MB, free: 10.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000284/1.224, allocations: 141.5 kB / 494.6 MB, free: 10.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00387/1.228, allocations: 1.261 MB / 495.8 MB, free: 9.164 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007173/1.229, allocations: 45.7 kB / 495.9 MB, free: 9.113 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/1.23, allocations: 0.6091 MB / 496.5 MB, free: 8.496 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001218/1.231, allocations: 386.4 kB / 496.9 MB, free: 8.113 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009167/1.232, allocations: 291.3 kB / 497.1 MB, free: 7.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/1.232, allocations: 305.1 kB / 497.4 MB, free: 7.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002321/1.234, allocations: 0.727 MB / 498.2 MB, free: 6.789 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/1.237, allocations: 1.064 MB / 499.2 MB, free: 5.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009354/1.247, allocations: 1.743 MB / 0.4892 GB, free: 3.707 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.88e-05/1.247, allocations: 7.984 kB / 0.4892 GB, free: 3.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0116/1.259, allocations: 2.281 MB / 0.4915 GB, free: 1.406 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/1.259, allocations: 19.94 kB / 0.4915 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.287e-05/1.259, allocations: 8 kB / 0.4915 GB, free: 1.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/1.272, allocations: 1.284 MB / 0.4927 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/1.275, allocations: 291.6 kB / 0.493 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00489/1.28, allocations: 1.607 MB / 0.4946 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003962/1.284, allocations: 55.97 kB / 0.4946 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006414/1.285, allocations: 67.97 kB / 0.4947 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004273/1.289, allocations: 0.984 MB / 0.4957 GB, free: 13.06 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003425/1.293, allocations: 1.059 MB / 0.4967 GB, free: 11.85 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00631/1.299, allocations: 1.73 MB / 0.4984 GB, free: 9.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.456e-05/1.299, allocations: 0 / 0.4984 GB, free: 9.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.009178/1.308, allocations: 2.194 MB / 0.5005 GB, free: 7.773 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/1.309, allocations: 12 kB / 0.5005 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.65e-05/1.309, allocations: 8.594 kB / 0.5006 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01215/1.321, allocations: 1.103 MB / 0.5016 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/1.324, allocations: 307.5 kB / 0.5019 GB, free: 6.348 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005581/1.33, allocations: 1.449 MB / 0.5033 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/1.334, allocations: 67.95 kB / 0.5034 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005467/1.334, allocations: 71.91 kB / 0.5035 GB, free: 4.738 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],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 (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.001198/1.335, allocations: 271.8 kB / 0.5037 GB, free: 4.465 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001142/1.337, allocations: 146.2 kB / 0.5039 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/1.348, allocations: 2.093 MB / 0.5059 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.384e-05/1.348, allocations: 15.94 kB / 0.5059 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-05/1.348, allocations: 0 / 0.5059 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-05/1.348, allocations: 7.969 kB / 0.5059 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/1.365, allocations: 3.577 MB / 0.5094 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.446e-05/1.365, allocations: 4 kB / 0.5094 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001926/1.367, allocations: 195.7 kB / 0.5096 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004859/1.372, allocations: 0.8602 MB / 0.5105 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004195/1.373, allocations: 31.98 kB / 0.5105 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004329/1.377, allocations: 1.607 MB / 0.5121 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/1.377, allocations: 7.938 kB / 0.5121 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007952/1.385, allocations: 2.909 MB / 0.5149 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/1.387, allocations: 395.1 kB / 0.5153 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004618/1.387, allocations: 20 kB / 0.5153 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/1.389, allocations: 63.95 kB / 0.5154 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004315/1.39, allocations: 101 kB / 0.5155 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002638/1.39, allocations: 52.16 kB / 0.5155 GB, free: 8.262 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002541/1.392, allocations: 0.8441 MB / 0.5163 GB, free: 7.414 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.32e-07/1.393, allocations: 3.938 kB / 0.5163 GB, free: 7.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007913/1.4, allocations: 1.156 MB / 0.5175 GB, free: 6.254 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004679/1.405, allocations: 0.8495 MB / 0.5183 GB, free: 5.391 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0151/1.42, allocations: 2.863 MB / 0.5211 GB, free: 2.535 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.116e-05/1.421, allocations: 0 / 0.5211 GB, free: 2.535 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004236/1.425, allocations: 0.868 MB / 0.5219 GB, free: 1.668 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007302/1.432, allocations: 0.654 MB / 0.5226 GB, free: 1.023 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/1.444, allocations: 3.139 MB / 0.5256 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/1.445, allocations: 1.292 MB / 0.5269 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/1.447, allocations: 151.4 kB / 0.5271 GB, free: 12.39 MB / 462.1 MB Notification: Performance of SimCode: time 2.264e-06/1.447, allocations: 0 / 0.5271 GB, free: 12.39 MB / 462.1 MB Notification: Performance of Templates: time 0.7012/2.148, allocations: 35.91 MB / 0.5621 GB, free: 120.7 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches