Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003293/0.003299, allocations: 183 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.312/3.312, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001913/0.001913, allocations: 85.56 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006724/0.0006726, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.515/0.5158, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.06907/0.5849, allocations: 25.17 MB / 399.7 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04037/0.6254, allocations: 13.37 MB / 413.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003504/0.629, allocations: 59.44 kB / 413.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003857/0.6329, allocations: 0.5246 MB / 413.7 MB, free: 9.648 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01425/0.6472, allocations: 1.877 MB / 415.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01867/0.6659, allocations: 2.914 MB / 418.4 MB, free: 4.859 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008148/0.6742, allocations: 2.318 MB / 420.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003378/0.6776, allocations: 0.9768 MB / 421.7 MB, free: 1.539 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005521/0.6832, allocations: 1.223 MB / 423 MB, free: 320 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004831/0.6881, allocations: 1.086 MB / 424 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.6894, allocations: 84 kB / 424.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01237/0.7019, allocations: 2.216 MB / 426.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002196/0.7041, allocations: 0.4909 MB / 426.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.706, allocations: 309 kB / 427.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01154/0.7176, allocations: 2.627 MB / 429.8 MB, free: 9.488 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.7177, allocations: 0 / 429.8 MB, free: 9.488 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.797e-06/0.7177, allocations: 0 / 429.8 MB, free: 9.488 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001469/0.7179, allocations: 3.938 kB / 429.8 MB, free: 9.484 MB / 314.7 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.01315/0.7311, allocations: 1.908 MB / 431.7 MB, free: 7.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.761e-05/0.7312, allocations: 8.031 kB / 431.7 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001862/0.7331, allocations: 178.1 kB / 431.9 MB, free: 7.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005216/0.7384, allocations: 0.9606 MB / 432.8 MB, free: 6.336 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004868/0.7389, allocations: 175.1 kB / 433 MB, free: 6.145 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009787/0.7399, allocations: 99.95 kB / 433.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009827/0.7498, allocations: 1.741 MB / 434.8 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.4e-05/0.75, allocations: 4 kB / 434.8 MB, free: 4.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005934/0.7506, allocations: 39.97 kB / 434.9 MB, free: 4.211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005111/0.7512, allocations: 117.9 kB / 435 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01015/0.7613, allocations: 1.78 MB / 436.8 MB, free: 2.305 MB / 314.7 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.03778/0.7992, allocations: 6.789 MB / 443.6 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006181/0.8055, allocations: 1.238 MB / 444.8 MB, free: 9.934 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01905/0.8246, allocations: 4.322 MB / 449.1 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001066/0.8248, allocations: 47.56 kB / 449.2 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002674/0.8275, allocations: 202.6 kB / 449.4 MB, free: 4.941 MB / 330.7 MB Notification: Performance of pre-optimization done (n=97): time 1.293e-05/0.8276, allocations: 4 kB / 449.4 MB, free: 4.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=112): time 0.05977/0.8874, allocations: 5.731 MB / 455.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.8876, allocations: 141.5 kB / 455.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00495/0.8926, allocations: 1.242 MB / 456.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005613/0.8932, allocations: 53.64 kB / 456.5 MB, free: 13.67 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.8944, allocations: 0.5914 MB / 457.1 MB, free: 13.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001218/0.8957, allocations: 382.4 kB / 457.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003253/0.8961, allocations: 32 kB / 457.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003714/0.8965, allocations: 370.8 kB / 457.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003957/0.9005, allocations: 0.691 MB / 458.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004653/0.9052, allocations: 1.04 MB / 459.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004748/0.9101, allocations: 0.8182 MB / 460.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.888e-05/0.9102, allocations: 0 / 460.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01233/0.9226, allocations: 2.153 MB / 462.6 MB, free: 7.434 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003208/0.9258, allocations: 3.758 MB / 466.3 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-05/0.926, allocations: 8 kB / 466.4 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02166/0.9477, allocations: 1.278 MB / 467.6 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/0.9518, allocations: 295.5 kB / 467.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0074/0.9593, allocations: 1.602 MB / 469.5 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004202/0.9636, allocations: 79.86 kB / 469.6 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007621/0.9644, allocations: 75.95 kB / 469.7 MB, free: 24 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.9645, allocations: 4 kB / 469.7 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01213/0.9767, allocations: 2.022 MB / 471.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.451e-05/0.9768, allocations: 12.75 kB / 471.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/0.9975, allocations: 1.089 MB / 472.8 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/1.002, allocations: 303.5 kB / 473.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/1.008, allocations: 1.43 MB / 474.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003151/1.011, allocations: 87.8 kB / 474.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006671/1.012, allocations: 71.95 kB / 474.7 MB, free: 10.97 MB / 362.7 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 (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 initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.002386/1.014, allocations: 468.5 kB / 475.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000974/1.015, allocations: 146.3 kB / 475.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/1.029, allocations: 2.09 MB / 477.4 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.932e-05/1.03, allocations: 12 kB / 477.4 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/1.03, allocations: 0 / 477.4 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-05/1.03, allocations: 7.969 kB / 477.4 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01861/1.048, allocations: 3.594 MB / 481 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.463e-05/1.048, allocations: 0 / 481 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003179/1.052, allocations: 191.8 kB / 481.2 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01119/1.063, allocations: 1.004 MB / 482.2 MB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005273/1.063, allocations: 27.98 kB / 482.2 MB, free: 3.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006808/1.07, allocations: 1.603 MB / 483.8 MB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/1.07, allocations: 3.953 kB / 483.8 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/1.085, allocations: 2.899 MB / 486.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.088, allocations: 427 kB / 487.1 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.089, allocations: 20 kB / 487.2 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003961/1.093, allocations: 83.84 kB / 487.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008657/1.094, allocations: 97.12 kB / 487.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005854/1.095, allocations: 55.95 kB / 487.4 MB, free: 14.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003761/1.098, allocations: 0.8324 MB / 488.2 MB, free: 13.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.863e-06/1.098, allocations: 0 / 488.2 MB, free: 13.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008701/1.107, allocations: 1.163 MB / 489.4 MB, free: 12.12 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.005305/1.113, allocations: 0.8339 MB / 490.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01851/1.131, allocations: 2.746 MB / 493 MB, free: 8.535 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.287e-05/1.131, allocations: 12 kB / 493 MB, free: 8.523 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005885/1.137, allocations: 0.8634 MB / 493.8 MB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008416/1.146, allocations: 0.5974 MB / 494.4 MB, free: 7.066 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/1.164, allocations: 3.637 MB / 498.1 MB, free: 3.406 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002354/1.167, allocations: 1.315 MB / 499.4 MB, free: 2.066 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001539/1.168, allocations: 139.4 kB / 499.5 MB, free: 1.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.925e-06/1.168, allocations: 0 / 499.5 MB, free: 1.93 MB / 378.7 MB Notification: Performance of Templates: time 0.5288/1.697, allocations: 35.4 MB / 0.5224 GB, free: 87.71 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches