Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001181, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 54.94 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.1001, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2191/0.3193, allocations: 28.85 MB / 387.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02152/0.3409, allocations: 15.03 MB / 402.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.3441, allocations: 42.62 kB / 402.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.3464, allocations: 0.5912 MB / 403.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008131/0.3546, allocations: 2.305 MB / 405.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01268/0.3673, allocations: 3.727 MB / 409.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006866/0.3742, allocations: 4.152 MB / 413.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002012/0.3763, allocations: 1.159 MB / 414.8 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003286/0.3796, allocations: 1.557 MB / 416.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002778/0.3824, allocations: 1.663 MB / 418 MB, free: 36 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003469/0.3827, allocations: 168 kB / 418.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00541/0.3881, allocations: 2.437 MB / 420.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008206/0.389, allocations: 0.6116 MB / 421.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.3903, allocations: 0.8673 MB / 422.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00754/0.3979, allocations: 3.744 MB / 425.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3979, allocations: 4 kB / 425.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3979, allocations: 0 / 425.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.605e-05/0.398, allocations: 0 / 425.8 MB, free: 8.184 MB / 334.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.005436/0.4034, allocations: 2.208 MB / 428 MB, free: 5.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4035, allocations: 8.031 kB / 428 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005648/0.404, allocations: 175 kB / 428.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/0.406, allocations: 1.061 MB / 429.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.4062, allocations: 175 kB / 429.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.4064, allocations: 107.9 kB / 429.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00282/0.4092, allocations: 1.749 MB / 431.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/0.4093, allocations: 0 / 431.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.4095, allocations: 43.97 kB / 431.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.4096, allocations: 117.9 kB / 431.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.4125, allocations: 1.784 MB / 433.2 MB, free: 0.5859 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.01161/0.4241, allocations: 6.701 MB / 439.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.4259, allocations: 1.239 MB / 441.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.4271, allocations: 0.769 MB / 441.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006309/0.4334, allocations: 4.275 MB / 446.2 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.4334, allocations: 47.55 kB / 446.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000775/0.4342, allocations: 174.8 kB / 446.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.186e-06/0.4342, allocations: 0 / 446.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01811/0.4524, allocations: 5.683 MB / 452.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.4525, allocations: 145.5 kB / 452.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.4541, allocations: 1.25 MB / 453.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001534/0.4543, allocations: 53.7 kB / 453.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004267/0.4547, allocations: 0.6168 MB / 454.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003305/0.455, allocations: 382.5 kB / 454.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000528/0.4556, allocations: 291.4 kB / 454.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4557, allocations: 301.1 kB / 455.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.457, allocations: 0.7231 MB / 455.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.4585, allocations: 1.064 MB / 456.9 MB, free: 7.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0025/0.461, allocations: 1.747 MB / 458.7 MB, free: 5.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-06/0.461, allocations: 11.94 kB / 458.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003884/0.4649, allocations: 2.28 MB / 460.9 MB, free: 3.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.465, allocations: 15.94 kB / 461 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.465, allocations: 8 kB / 461 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00715/0.4722, allocations: 1.287 MB / 462.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.4738, allocations: 303.5 kB / 462.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/0.4764, allocations: 1.599 MB / 464.1 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.478, allocations: 59.97 kB / 464.2 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/0.4782, allocations: 71.95 kB / 464.3 MB, free: 316 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001741/0.4799, allocations: 0.9801 MB / 465.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001422/0.4813, allocations: 1.051 MB / 466.3 MB, free: 14.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002397/0.4837, allocations: 1.722 MB / 468 MB, free: 12.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.082e-05/0.4838, allocations: 7.938 kB / 468 MB, free: 12.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003815/0.4876, allocations: 2.191 MB / 470.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4876, allocations: 8 kB / 470.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.4876, allocations: 15.98 kB / 470.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006072/0.4937, allocations: 1.105 MB / 471.4 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.4952, allocations: 311.5 kB / 471.7 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.4972, allocations: 1.449 MB / 473.1 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.4987, allocations: 63.95 kB / 473.2 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.4988, allocations: 67.97 kB / 473.2 MB, free: 7.012 MB / 382.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.0004724/0.4993, allocations: 276.7 kB / 473.5 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.4996, allocations: 142.3 kB / 473.6 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004011/0.5036, allocations: 2.074 MB / 475.7 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.5037, allocations: 20 kB / 475.7 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.5037, allocations: 3.938 kB / 475.7 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.5037, allocations: 7.969 kB / 475.8 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005709/0.5094, allocations: 3.569 MB / 479.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.5094, allocations: 0 / 479.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009348/0.5104, allocations: 199.7 kB / 479.5 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00234/0.5127, allocations: 0.8635 MB / 480.4 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.5129, allocations: 35.98 kB / 480.4 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.515, allocations: 1.607 MB / 482 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.515, allocations: 192 / 482 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004396/0.5195, allocations: 2.92 MB / 484.9 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008475/0.5203, allocations: 391.1 kB / 485.3 MB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.5205, allocations: 24 kB / 485.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009267/0.5215, allocations: 51.95 kB / 485.4 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.5217, allocations: 101.1 kB / 485.5 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.5218, allocations: 51.97 kB / 485.6 MB, free: 10.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001048/0.5229, allocations: 0.8557 MB / 486.4 MB, free: 9.695 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5229, allocations: 0 / 486.4 MB, free: 9.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00272/0.5256, allocations: 1.163 MB / 487.6 MB, free: 8.531 MB / 398.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.001641/0.5273, allocations: 0.8494 MB / 488.4 MB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005825/0.5331, allocations: 2.866 MB / 491.3 MB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5331, allocations: 3.938 kB / 491.3 MB, free: 4.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.5348, allocations: 0.8687 MB / 492.2 MB, free: 3.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.5374, allocations: 0.6703 MB / 492.8 MB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005015/0.5424, allocations: 3.062 MB / 495.9 MB, free: 200 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007256/0.5432, allocations: 1.3 MB / 497.2 MB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001563/0.5447, allocations: 0.5784 MB / 497.8 MB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.5451, allocations: 135.3 kB / 497.9 MB, free: 14.16 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5451, allocations: 0 / 497.9 MB, free: 14.16 MB / 414.1 MB Notification: Performance of Templates: time 0.05984/0.6049, allocations: 43.78 MB / 0.529 GB, free: 2.551 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches