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.0009547/0.0009548, allocations: 96.25 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 203.8 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.7 MB / 247.5 MB, free: 11.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002686, allocations: 8 kB / 308.4 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 51.53 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2254/0.3321, allocations: 29.69 MB / 389.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02293/0.3551, allocations: 15.53 MB / 405.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003063/0.3582, allocations: 58.28 kB / 405.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002309/0.3606, allocations: 0.5228 MB / 405.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007642/0.3682, allocations: 2.164 MB / 407.9 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01023/0.3785, allocations: 3.153 MB / 411 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008121/0.3866, allocations: 6.18 MB / 417.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.3887, allocations: 1.012 MB / 418.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003056/0.3917, allocations: 1.327 MB / 419.5 MB, free: 28 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003082/0.3948, allocations: 1.655 MB / 421.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003881/0.3953, allocations: 88 kB / 421.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00603/0.4013, allocations: 2.371 MB / 423.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.4026, allocations: 0.553 MB / 424.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.4042, allocations: 0.8142 MB / 425 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004942/0.4092, allocations: 2.658 MB / 427.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4092, allocations: 4 kB / 427.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4092, allocations: 0 / 427.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.547e-05/0.4093, allocations: 0 / 427.7 MB, free: 7.855 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.004882/0.4141, allocations: 1.893 MB / 429.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.4142, allocations: 12.03 kB / 429.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005851/0.4148, allocations: 174.1 kB / 429.8 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.4165, allocations: 1.014 MB / 430.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.4166, allocations: 171.1 kB / 430.9 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.4169, allocations: 107.8 kB / 431 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/0.4199, allocations: 1.749 MB / 432.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.4199, allocations: 0 / 432.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.4201, allocations: 47.97 kB / 432.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001567/0.4202, allocations: 113.9 kB / 433 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/0.4233, allocations: 1.788 MB / 434.7 MB, free: 0.6172 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.01159/0.4349, allocations: 6.739 MB / 441.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.4368, allocations: 1.238 MB / 442.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.4381, allocations: 0.7612 MB / 443.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005982/0.444, allocations: 4.287 MB / 447.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.4441, allocations: 43.56 kB / 447.8 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008436/0.445, allocations: 214.6 kB / 448 MB, free: 2.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.856e-06/0.445, allocations: 0 / 448 MB, free: 2.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01919/0.4642, allocations: 5.758 MB / 453.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/0.4643, allocations: 145.5 kB / 453.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.4662, allocations: 1.253 MB / 455.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002112/0.4664, allocations: 45.7 kB / 455.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/0.4669, allocations: 0.6052 MB / 455.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003851/0.4673, allocations: 394.4 kB / 456.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002038/0.4675, allocations: 125.6 kB / 456.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4676, allocations: 301.1 kB / 456.6 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4688, allocations: 0.7144 MB / 457.3 MB, free: 9.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.4703, allocations: 1.06 MB / 458.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002626/0.473, allocations: 1.751 MB / 460.1 MB, free: 6.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.473, allocations: 4 kB / 460.2 MB, free: 6.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004123/0.4771, allocations: 2.292 MB / 462.4 MB, free: 3.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002812/0.4774, allocations: 379.5 kB / 462.8 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.4774, allocations: 8 kB / 462.8 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007041/0.4845, allocations: 1.282 MB / 464.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.4859, allocations: 299.6 kB / 464.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00252/0.4884, allocations: 1.595 MB / 466 MB, free: 8 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.49, allocations: 91.91 kB / 466.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.4902, allocations: 71.97 kB / 466.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.4903, allocations: 10.97 kB / 466.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003541/0.4938, allocations: 2.039 MB / 468.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.4939, allocations: 11.94 kB / 468.2 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006408/0.5003, allocations: 1.116 MB / 469.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.5017, allocations: 311.5 kB / 469.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.504, allocations: 1.473 MB / 471.1 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.5055, allocations: 83.89 kB / 471.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.5057, allocations: 67.97 kB / 471.3 MB, free: 10.71 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.0008909/0.5066, allocations: 468.5 kB / 471.7 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/0.5069, allocations: 146.2 kB / 471.9 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/0.511, allocations: 2.09 MB / 473.9 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.5111, allocations: 16 kB / 474 MB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5111, allocations: 0 / 474 MB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.5111, allocations: 7.922 kB / 474 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005843/0.5169, allocations: 3.579 MB / 477.5 MB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.517, allocations: 7.938 kB / 477.6 MB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009061/0.5179, allocations: 195.7 kB / 477.7 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00381/0.5217, allocations: 0.9922 MB / 478.7 MB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.5219, allocations: 31.98 kB / 478.8 MB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/0.5242, allocations: 1.619 MB / 480.4 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5242, allocations: 4.125 kB / 480.4 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004718/0.5289, allocations: 2.903 MB / 483.3 MB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008971/0.5299, allocations: 415.1 kB / 483.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.5301, allocations: 20 kB / 483.7 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5311, allocations: 91.78 kB / 483.8 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.5314, allocations: 93.17 kB / 483.9 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.5315, allocations: 47.97 kB / 483.9 MB, free: 13.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001184/0.5327, allocations: 0.8441 MB / 484.8 MB, free: 13.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5327, allocations: 0 / 484.8 MB, free: 13.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003003/0.5357, allocations: 1.171 MB / 486 MB, free: 11.85 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.001997/0.5377, allocations: 0.8611 MB / 486.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006385/0.5441, allocations: 2.82 MB / 489.6 MB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.5442, allocations: 0 / 489.6 MB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.546, allocations: 0.8632 MB / 490.5 MB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/0.5495, allocations: 0.6317 MB / 491.1 MB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.5556, allocations: 3.784 MB / 494.9 MB, free: 2.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000843/0.5565, allocations: 1.292 MB / 496.2 MB, free: 1.559 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005522/0.557, allocations: 139.4 kB / 496.3 MB, free: 1.422 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.557, allocations: 0 / 496.3 MB, free: 1.422 MB / 398.1 MB Notification: Performance of Templates: time 0.0517/0.6088, allocations: 35.83 MB / 0.5197 GB, free: 13.68 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 -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