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.0008126/0.0008126, allocations: 91.69 kB / 17.31 MB, free: 5.582 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.0008845/0.0008846, allocations: 179.5 kB / 18.21 MB, free: 5.191 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.158/1.158, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002157/0.0002158, allocations: 16.08 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07819/0.07842, allocations: 50.42 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1603/0.2387, allocations: 29.5 MB / 382 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01493/0.2537, allocations: 15.5 MB / 397.5 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.2549, allocations: 59.59 kB / 397.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009882/0.2559, allocations: 0.5208 MB / 398.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003801/0.2597, allocations: 2.164 MB / 400.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007098/0.2668, allocations: 3.174 MB / 403.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005566/0.2724, allocations: 6.14 MB / 409.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.2735, allocations: 1.014 MB / 410.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.2751, allocations: 1.326 MB / 411.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.2769, allocations: 1.65 MB / 413.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001773/0.2771, allocations: 92 kB / 413.6 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003969/0.281, allocations: 2.355 MB / 416 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000484/0.2815, allocations: 0.5374 MB / 416.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007384/0.2823, allocations: 0.8219 MB / 417.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00261/0.2849, allocations: 2.65 MB / 420 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2849, allocations: 4 kB / 420 MB, free: 2.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2849, allocations: 0 / 420 MB, free: 2.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.2849, allocations: 0 / 420 MB, free: 2.023 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003861/0.2888, allocations: 1.893 MB / 421.9 MB, free: 80 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.2888, allocations: 8.031 kB / 421.9 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004254/0.2893, allocations: 182.1 kB / 422.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.2906, allocations: 0.9949 MB / 423.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.2907, allocations: 183 kB / 423.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.2909, allocations: 103.8 kB / 423.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.2933, allocations: 1.757 MB / 425.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.2934, allocations: 3.938 kB / 425.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.2935, allocations: 47.97 kB / 425.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001338/0.2937, allocations: 109.9 kB / 425.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002578/0.2962, allocations: 1.78 MB / 427 MB, free: 10.79 MB / 334.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.009632/0.3059, allocations: 6.75 MB / 433.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.3075, allocations: 1.242 MB / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.3086, allocations: 0.7716 MB / 435.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004893/0.3135, allocations: 4.279 MB / 440.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3135, allocations: 47.5 kB / 440.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000603/0.3141, allocations: 218.5 kB / 440.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.034e-06/0.3142, allocations: 0 / 440.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01648/0.3306, allocations: 5.753 MB / 446.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.3307, allocations: 145.5 kB / 446.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/0.3322, allocations: 1.253 MB / 447.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.361e-05/0.3323, allocations: 45.7 kB / 447.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.3327, allocations: 0.613 MB / 448.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/0.333, allocations: 386.4 kB / 448.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.3332, allocations: 125.6 kB / 448.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.3333, allocations: 301.1 kB / 448.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.3344, allocations: 0.7144 MB / 449.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.3356, allocations: 1.068 MB / 450.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/0.338, allocations: 1.743 MB / 452.5 MB, free: 196 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.338, allocations: 0 / 452.5 MB, free: 196 kB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00349/0.3415, allocations: 2.288 MB / 454.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002238/0.3417, allocations: 387.5 kB / 455.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.3417, allocations: 8 kB / 455.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006569/0.3483, allocations: 1.284 MB / 456.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.3494, allocations: 303.5 kB / 456.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.3515, allocations: 1.595 MB / 458.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.3526, allocations: 99.72 kB / 458.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.3527, allocations: 67.97 kB / 458.5 MB, free: 10 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-06/0.3528, allocations: 4 kB / 458.5 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003084/0.3559, allocations: 2.035 MB / 460.5 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.3559, allocations: 12.03 kB / 460.5 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005906/0.3618, allocations: 1.114 MB / 461.7 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.3629, allocations: 307.5 kB / 462 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.3647, allocations: 1.469 MB / 463.4 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009612/0.3657, allocations: 87.8 kB / 463.5 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.3658, allocations: 71.95 kB / 463.6 MB, free: 4.875 MB / 366.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.0006101/0.3665, allocations: 460.6 kB / 464 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.3667, allocations: 150.2 kB / 464.2 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003667/0.3703, allocations: 2.086 MB / 466.3 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.3704, allocations: 12 kB / 466.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3704, allocations: 0 / 466.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.3704, allocations: 11.91 kB / 466.3 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004883/0.3753, allocations: 3.594 MB / 469.9 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.3753, allocations: 7.938 kB / 469.9 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008168/0.3761, allocations: 195.7 kB / 470.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003499/0.3796, allocations: 0.9928 MB / 471.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.253e-05/0.3797, allocations: 31.98 kB / 471.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.3817, allocations: 1.607 MB / 472.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3817, allocations: 0 / 472.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004153/0.3859, allocations: 2.911 MB / 475.6 MB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000649/0.3865, allocations: 403.2 kB / 476 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.3867, allocations: 31.94 kB / 476 MB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009332/0.3877, allocations: 87.78 kB / 476.1 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.3879, allocations: 93.17 kB / 476.2 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.388, allocations: 51.97 kB / 476.3 MB, free: 8.027 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001031/0.389, allocations: 0.848 MB / 477.1 MB, free: 7.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.389, allocations: 0 / 477.1 MB, free: 7.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002393/0.3914, allocations: 1.163 MB / 478.3 MB, free: 6.012 MB / 382.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.001668/0.3931, allocations: 0.85 MB / 479.1 MB, free: 5.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00542/0.3985, allocations: 2.82 MB / 482 MB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.3986, allocations: 0 / 482 MB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.4002, allocations: 0.8751 MB / 482.8 MB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/0.4028, allocations: 0.6237 MB / 483.5 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.408, allocations: 3.777 MB / 487.2 MB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007778/0.4087, allocations: 1.288 MB / 488.5 MB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003995/0.4091, allocations: 143.4 kB / 488.7 MB, free: 11.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4092, allocations: 3.938 kB / 488.7 MB, free: 11.59 MB / 398.1 MB Notification: Performance of Templates: time 0.04206/0.4512, allocations: 35.55 MB / 0.5119 GB, free: 8.133 MB / 430.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