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.001468/0.001468, allocations: 112.3 kB / 17.74 MB, free: 5.312 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.001691/0.001691, allocations: 183 kB / 18.67 MB, free: 4.395 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2628, allocations: 49.42 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03051/0.2934, allocations: 28.68 MB / 430.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02134/0.3147, allocations: 15.02 MB / 445.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001887/0.3167, allocations: 43.75 kB / 445.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00212/0.3188, allocations: 0.594 MB / 445.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006524/0.3254, allocations: 2.29 MB / 448 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009972/0.3354, allocations: 3.73 MB / 451.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006178/0.3416, allocations: 4.139 MB / 455.9 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002247/0.3439, allocations: 1.156 MB / 457 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003817/0.3477, allocations: 1.569 MB / 458.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003114/0.3509, allocations: 1.666 MB / 460.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007881/0.3517, allocations: 164 kB / 460.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005423/0.3571, allocations: 2.422 MB / 462.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.3583, allocations: 0.6194 MB / 463.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001848/0.3601, allocations: 0.8672 MB / 464.3 MB, free: 9.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007385/0.3675, allocations: 3.721 MB / 468.1 MB, free: 5.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3676, allocations: 4 kB / 468.1 MB, free: 5.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3676, allocations: 0 / 468.1 MB, free: 5.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-05/0.3677, allocations: 0 / 468.1 MB, free: 5.953 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.006441/0.3741, allocations: 2.204 MB / 470.3 MB, free: 3.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.3742, allocations: 11.89 kB / 470.3 MB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008695/0.375, allocations: 174.1 kB / 470.4 MB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.3772, allocations: 1.065 MB / 471.5 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.3775, allocations: 175 kB / 471.7 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003346/0.3778, allocations: 99.97 kB / 471.8 MB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003674/0.3815, allocations: 1.757 MB / 473.5 MB, free: 312 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/0.3816, allocations: 4 kB / 473.5 MB, free: 308 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/0.3817, allocations: 39.97 kB / 473.6 MB, free: 268 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/0.3819, allocations: 117.9 kB / 473.7 MB, free: 148 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002988/0.3849, allocations: 1.78 MB / 475.5 MB, free: 14.36 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.01207/0.397, allocations: 6.703 MB / 482.2 MB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.399, allocations: 1.23 MB / 483.4 MB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.4001, allocations: 0.7646 MB / 484.2 MB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006001/0.4061, allocations: 4.282 MB / 488.5 MB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.4062, allocations: 51.55 kB / 488.5 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008065/0.407, allocations: 174.7 kB / 488.7 MB, free: 400 kB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 6.112e-06/0.407, allocations: 3.938 kB / 488.7 MB, free: 396 kB / 398.1 MB Notification: Performance of matching and sorting (n=112): time 0.01912/0.4262, allocations: 5.693 MB / 494.4 MB, free: 10.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.4263, allocations: 141.5 kB / 494.5 MB, free: 10.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.4283, allocations: 1.249 MB / 495.8 MB, free: 9.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002457/0.4285, allocations: 53.69 kB / 495.8 MB, free: 9.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000504/0.429, allocations: 0.6052 MB / 496.4 MB, free: 8.535 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005019/0.4295, allocations: 390.4 kB / 496.8 MB, free: 8.148 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006457/0.4302, allocations: 299.3 kB / 497.1 MB, free: 7.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4303, allocations: 301.1 kB / 497.4 MB, free: 7.551 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.4316, allocations: 0.7191 MB / 498.1 MB, free: 6.828 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.4331, allocations: 1.064 MB / 499.2 MB, free: 5.621 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002696/0.4358, allocations: 1.751 MB / 0.4892 GB, free: 3.738 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.4359, allocations: 3.938 kB / 0.4892 GB, free: 3.734 MB / 414.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004236/0.4401, allocations: 2.285 MB / 0.4914 GB, free: 1.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.4402, allocations: 11.94 kB / 0.4914 GB, free: 1.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.4402, allocations: 12 kB / 0.4914 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006896/0.4471, allocations: 1.285 MB / 0.4927 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.4486, allocations: 303.5 kB / 0.493 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002752/0.4514, allocations: 1.595 MB / 0.4945 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.453, allocations: 59.97 kB / 0.4946 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000322/0.4534, allocations: 75.95 kB / 0.4947 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001902/0.4553, allocations: 0.9839 MB / 0.4956 GB, free: 13.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001541/0.4568, allocations: 1.055 MB / 0.4967 GB, free: 11.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002663/0.4595, allocations: 1.722 MB / 0.4983 GB, free: 10.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.063e-05/0.4595, allocations: 8 kB / 0.4984 GB, free: 10.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004078/0.4636, allocations: 2.191 MB / 0.5005 GB, free: 7.805 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4637, allocations: 8 kB / 0.5005 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.4637, allocations: 12 kB / 0.5005 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006316/0.47, allocations: 1.1 MB / 0.5016 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.4715, allocations: 307.5 kB / 0.5019 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.4737, allocations: 1.453 MB / 0.5033 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.4752, allocations: 67.95 kB / 0.5034 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003089/0.4756, allocations: 71.91 kB / 0.5034 GB, free: 4.77 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.0006546/0.4762, allocations: 271.8 kB / 0.5037 GB, free: 4.496 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000516/0.4768, allocations: 146.2 kB / 0.5038 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004435/0.4812, allocations: 2.086 MB / 0.5059 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-05/0.4813, allocations: 15.94 kB / 0.5059 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.4813, allocations: 0 / 0.5059 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.4813, allocations: 11.97 kB / 0.5059 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006244/0.4876, allocations: 3.577 MB / 0.5094 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.4876, allocations: 3.984 kB / 0.5094 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009088/0.4885, allocations: 187.8 kB / 0.5096 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/0.4909, allocations: 0.8679 MB / 0.5104 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.4911, allocations: 31.98 kB / 0.5104 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/0.4934, allocations: 1.615 MB / 0.512 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4934, allocations: 3.938 kB / 0.512 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004845/0.4982, allocations: 2.909 MB / 0.5149 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008128/0.4991, allocations: 387.2 kB / 0.5152 GB, free: 8.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/0.4995, allocations: 32.19 kB / 0.5153 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.5007, allocations: 59.89 kB / 0.5153 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.5009, allocations: 105 kB / 0.5154 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.5011, allocations: 47.97 kB / 0.5155 GB, free: 8.293 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001441/0.5025, allocations: 0.848 MB / 0.5163 GB, free: 7.441 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5026, allocations: 0 / 0.5163 GB, free: 7.441 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003605/0.5062, allocations: 1.16 MB / 0.5174 GB, free: 6.281 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.002417/0.5086, allocations: 0.8456 MB / 0.5183 GB, free: 5.422 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006939/0.5156, allocations: 2.859 MB / 0.521 GB, free: 2.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.5156, allocations: 0 / 0.521 GB, free: 2.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001985/0.5176, allocations: 0.8754 MB / 0.5219 GB, free: 1.695 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003734/0.5214, allocations: 0.649 MB / 0.5225 GB, free: 1.059 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006397/0.5278, allocations: 3.135 MB / 0.5256 GB, free: 13.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.5289, allocations: 1.292 MB / 0.5269 GB, free: 12.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006575/0.5296, allocations: 143.4 kB / 0.527 GB, free: 12.44 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5296, allocations: 0 / 0.527 GB, free: 12.44 MB / 462.1 MB Notification: Performance of Templates: time 0.2627/0.7923, allocations: 35.91 MB / 0.5621 GB, free: 120.4 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