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.0007281/0.0007282, allocations: 92.56 kB / 16.65 MB, free: 6.59 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.0008035/0.0008035, allocations: 182.4 kB / 17.56 MB, free: 6.203 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.364/1.364, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002602/0.0002606, allocations: 11.94 kB / 301.4 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08776/0.08804, allocations: 50.41 MB / 351.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1974/0.2855, allocations: 29.5 MB / 381.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01902/0.3045, allocations: 15.51 MB / 396.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001954/0.3065, allocations: 62.38 kB / 396.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.3079, allocations: 0.5125 MB / 397.4 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004931/0.3128, allocations: 2.16 MB / 399.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008446/0.3213, allocations: 3.173 MB / 402.7 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00674/0.328, allocations: 6.14 MB / 408.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.3295, allocations: 1.009 MB / 409.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002315/0.3319, allocations: 1.335 MB / 411.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.3342, allocations: 1.647 MB / 412.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002552/0.3344, allocations: 95.98 kB / 413 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004972/0.3394, allocations: 2.348 MB / 415.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006196/0.3401, allocations: 0.5452 MB / 415.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009382/0.341, allocations: 0.822 MB / 416.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005125/0.3461, allocations: 3.603 MB / 420.3 MB, free: 1.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.3462, allocations: 3.938 kB / 420.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3462, allocations: 0 / 420.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3462, allocations: 3.938 kB / 420.3 MB, free: 1.102 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.004558/0.3508, allocations: 1.893 MB / 422.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3508, allocations: 12.03 kB / 422.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004889/0.3513, allocations: 178.1 kB / 422.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.3528, allocations: 1.003 MB / 423.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.353, allocations: 175.1 kB / 423.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.3532, allocations: 103.8 kB / 423.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.356, allocations: 1.761 MB / 425.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.356, allocations: 7.938 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.3562, allocations: 43.95 kB / 425.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/0.3563, allocations: 109.9 kB / 425.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002932/0.3593, allocations: 1.788 MB / 427.3 MB, free: 9.855 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.01128/0.3706, allocations: 6.743 MB / 434.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001929/0.3725, allocations: 1.246 MB / 435.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.3737, allocations: 0.7651 MB / 436.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006132/0.3799, allocations: 4.279 MB / 440.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.38, allocations: 55.5 kB / 440.4 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008552/0.3808, allocations: 210.5 kB / 440.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.287e-06/0.3808, allocations: 0 / 440.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01878/0.3996, allocations: 5.753 MB / 446.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.602e-05/0.3997, allocations: 153.4 kB / 446.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/0.4014, allocations: 1.253 MB / 447.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001401/0.4016, allocations: 45.7 kB / 447.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004695/0.4021, allocations: 0.6091 MB / 448.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000357/0.4024, allocations: 386.4 kB / 448.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.4026, allocations: 125.6 kB / 448.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.4027, allocations: 301.1 kB / 449.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.4039, allocations: 0.7105 MB / 450 MB, free: 2.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.4054, allocations: 1.064 MB / 451 MB, free: 1.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002592/0.408, allocations: 1.747 MB / 452.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.408, allocations: 4 kB / 452.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004119/0.4121, allocations: 2.284 MB / 455.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.4124, allocations: 379.4 kB / 455.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.4124, allocations: 12 kB / 455.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007191/0.4196, allocations: 1.281 MB / 456.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.4209, allocations: 303.5 kB / 457 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.4234, allocations: 1.599 MB / 458.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.4248, allocations: 91.73 kB / 458.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/0.425, allocations: 71.95 kB / 458.8 MB, free: 9.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/0.425, allocations: 4 kB / 458.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003611/0.4286, allocations: 2.035 MB / 460.8 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.4287, allocations: 20.12 kB / 460.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006507/0.4352, allocations: 1.114 MB / 461.9 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.4365, allocations: 307.5 kB / 462.2 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/0.4387, allocations: 1.469 MB / 463.7 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.44, allocations: 91.73 kB / 463.8 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.4402, allocations: 67.97 kB / 463.9 MB, free: 3.945 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.0007984/0.441, allocations: 460.6 kB / 464.3 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003219/0.4414, allocations: 150.2 kB / 464.5 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00419/0.4456, allocations: 2.081 MB / 466.5 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.4456, allocations: 16 kB / 466.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.4456, allocations: 3.938 kB / 466.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.4456, allocations: 15.91 kB / 466.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0057/0.4513, allocations: 3.586 MB / 470.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4513, allocations: 7.938 kB / 470.2 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009363/0.4523, allocations: 191.8 kB / 470.4 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003955/0.4563, allocations: 0.9967 MB / 471.4 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.4564, allocations: 31.97 kB / 471.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/0.4587, allocations: 1.615 MB / 473 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4587, allocations: 0 / 473 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004644/0.4633, allocations: 2.911 MB / 475.9 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007878/0.4641, allocations: 407.1 kB / 476.3 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002848/0.4644, allocations: 24 kB / 476.3 MB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.4656, allocations: 91.88 kB / 476.4 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.4658, allocations: 97.11 kB / 476.5 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.466, allocations: 51.97 kB / 476.6 MB, free: 7.094 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001247/0.4672, allocations: 0.848 MB / 477.4 MB, free: 6.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4672, allocations: 0 / 477.4 MB, free: 6.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002939/0.4702, allocations: 1.159 MB / 478.6 MB, free: 5.082 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.001912/0.4721, allocations: 0.8484 MB / 479.4 MB, free: 4.223 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006147/0.4783, allocations: 2.824 MB / 482.3 MB, free: 1.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.708e-05/0.4783, allocations: 0 / 482.3 MB, free: 1.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.4802, allocations: 0.8673 MB / 483.1 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/0.4834, allocations: 0.6263 MB / 483.7 MB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005711/0.4891, allocations: 3.716 MB / 487.5 MB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008157/0.49, allocations: 1.292 MB / 488.8 MB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002096/0.4921, allocations: 0.5939 MB / 489.3 MB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000356/0.4924, allocations: 127.4 kB / 489.5 MB, free: 10.15 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4924, allocations: 0 / 489.5 MB, free: 10.15 MB / 398.1 MB Notification: Performance of Templates: time 0.063/0.5554, allocations: 41.4 MB / 0.5184 GB, free: 1.02 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins/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