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.0009255/0.0009256, allocations: 177.1 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007059/0.0007059, allocations: 95.83 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.0002919, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.205, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01947/0.2245, allocations: 27.88 MB / 402.4 MB, free: 20.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01402/0.2386, allocations: 14.31 MB / 416.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.2404, allocations: 63.44 kB / 416.8 MB, free: 6.492 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.2418, allocations: 0.493 MB / 417.3 MB, free: 5.996 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004668/0.2465, allocations: 2.164 MB / 419.5 MB, free: 3.824 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00624/0.2527, allocations: 2.908 MB / 422.4 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005435/0.2582, allocations: 5.047 MB / 427.4 MB, free: 11.87 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.2597, allocations: 0.9844 MB / 428.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003485/0.2632, allocations: 1.405 MB / 429.8 MB, free: 9.449 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003994/0.2672, allocations: 1.604 MB / 431.4 MB, free: 7.84 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004521/0.2677, allocations: 91.94 kB / 431.5 MB, free: 7.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005869/0.2736, allocations: 2.082 MB / 433.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001031/0.2746, allocations: 0.5296 MB / 434.1 MB, free: 5.133 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006827/0.2753, allocations: 317 kB / 434.4 MB, free: 4.816 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005263/0.2806, allocations: 2.592 MB / 437 MB, free: 2.219 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2806, allocations: 0 / 437 MB, free: 2.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2807, allocations: 0 / 437 MB, free: 2.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.327e-05/0.2807, allocations: 4 kB / 437 MB, free: 2.215 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.006477/0.2872, allocations: 1.916 MB / 438.9 MB, free: 252 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2872, allocations: 8.031 kB / 438.9 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007534/0.288, allocations: 178.1 kB / 439.1 MB, free: 64 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.2902, allocations: 0.9607 MB / 440.1 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.2905, allocations: 175 kB / 440.2 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00027/0.2907, allocations: 104 kB / 440.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004089/0.2948, allocations: 1.745 MB / 442.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.585e-05/0.2949, allocations: 3.938 kB / 442.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.2951, allocations: 47.95 kB / 442.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002388/0.2954, allocations: 117.9 kB / 442.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004577/0.3, allocations: 1.78 MB / 444 MB, free: 11.01 MB / 330.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.01772/0.3177, allocations: 6.711 MB / 450.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.3206, allocations: 1.242 MB / 452 MB, free: 2.715 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.3225, allocations: 0.7582 MB / 452.7 MB, free: 1.957 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007249/0.3298, allocations: 4.291 MB / 457 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.3299, allocations: 47.5 kB / 457.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000861/0.3308, allocations: 210.6 kB / 457.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 3.106e-06/0.3308, allocations: 4 kB / 457.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01859/0.3494, allocations: 5.738 MB / 463 MB, free: 7.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.132e-05/0.3495, allocations: 141.5 kB / 463.2 MB, free: 7.016 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/0.3512, allocations: 1.242 MB / 464.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.3513, allocations: 49.7 kB / 464.5 MB, free: 5.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004616/0.3518, allocations: 0.613 MB / 465.1 MB, free: 5.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000393/0.3522, allocations: 386.4 kB / 465.5 MB, free: 4.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3523, allocations: 36 kB / 465.5 MB, free: 4.672 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.3525, allocations: 361.9 kB / 465.8 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.3537, allocations: 0.6949 MB / 466.5 MB, free: 3.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.3553, allocations: 1.044 MB / 467.6 MB, free: 2.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.3567, allocations: 0.8105 MB / 468.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3567, allocations: 0 / 468.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003944/0.3606, allocations: 2.241 MB / 470.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002651/0.3609, allocations: 375.6 kB / 471 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.361, allocations: 8 kB / 471 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007576/0.3685, allocations: 1.27 MB / 472.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.37, allocations: 303.5 kB / 472.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.3725, allocations: 1.595 MB / 474.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.374, allocations: 87.86 kB / 474.3 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000234/0.3742, allocations: 71.95 kB / 474.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.3742, allocations: 9.719 kB / 474.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003431/0.3777, allocations: 2.023 MB / 476.4 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.3777, allocations: 8 kB / 476.4 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006783/0.3845, allocations: 1.113 MB / 477.5 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.386, allocations: 307.5 kB / 477.8 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.3884, allocations: 1.461 MB / 479.2 MB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.3901, allocations: 87.8 kB / 479.3 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/0.3904, allocations: 67.97 kB / 479.4 MB, free: 6.41 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.0009019/0.3913, allocations: 464.6 kB / 479.8 MB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003987/0.3917, allocations: 146.3 kB / 480 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004268/0.396, allocations: 2.086 MB / 482.1 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.396, allocations: 16 kB / 482.1 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.396, allocations: 0 / 482.1 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.396, allocations: 3.984 kB / 482.1 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005844/0.4019, allocations: 3.583 MB / 485.7 MB, free: 40 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.4019, allocations: 3.953 kB / 485.7 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009691/0.4029, allocations: 195.8 kB / 485.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003777/0.4067, allocations: 0.9922 MB / 486.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001395/0.4068, allocations: 31.98 kB / 486.9 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.4092, allocations: 1.611 MB / 488.5 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4092, allocations: 4 kB / 488.5 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004639/0.4139, allocations: 2.899 MB / 491.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009968/0.4149, allocations: 415 kB / 491.8 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003619/0.4152, allocations: 20 kB / 491.8 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.4166, allocations: 83.84 kB / 491.9 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.4168, allocations: 105.2 kB / 492 MB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.417, allocations: 44.09 kB / 492.1 MB, free: 9.578 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001336/0.4183, allocations: 0.8402 MB / 492.9 MB, free: 8.734 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4183, allocations: 192 / 492.9 MB, free: 8.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003458/0.4218, allocations: 1.16 MB / 494.1 MB, free: 7.574 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.002122/0.4239, allocations: 0.8378 MB / 494.9 MB, free: 6.723 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005896/0.4299, allocations: 2.769 MB / 497.7 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.4299, allocations: 0 / 497.7 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.4316, allocations: 0.8677 MB / 498.5 MB, free: 3.098 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.4348, allocations: 0.6186 MB / 499.2 MB, free: 2.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1432/0.578, allocations: 3.636 MB / 0.491 GB, free: 111.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005864/0.5786, allocations: 1.288 MB / 0.4923 GB, free: 110.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005271/0.5791, allocations: 143.2 kB / 0.4924 GB, free: 110.4 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5792, allocations: 0 / 0.4924 GB, free: 110.4 MB / 378.7 MB Notification: Performance of Templates: time 0.03542/0.6146, allocations: 35.49 MB / 0.5271 GB, free: 84.59 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/jenkins/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