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.001161/0.001161, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.89 kB / 307.6 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09975, allocations: 50.53 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2178/0.3175, allocations: 28.85 MB / 387 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.34, allocations: 15.04 MB / 402 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002205/0.3423, allocations: 43 kB / 402.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002085/0.3444, allocations: 0.5868 MB / 402.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007658/0.3521, allocations: 2.304 MB / 405 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01123/0.3633, allocations: 3.73 MB / 408.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0068/0.3702, allocations: 4.155 MB / 412.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002383/0.3726, allocations: 1.165 MB / 414 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003518/0.3761, allocations: 1.543 MB / 415.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003288/0.3794, allocations: 1.667 MB / 417.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007082/0.3802, allocations: 160 kB / 417.4 MB, free: 436 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00621/0.3864, allocations: 2.441 MB / 419.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.3878, allocations: 0.6233 MB / 420.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002345/0.3901, allocations: 0.8711 MB / 421.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008015/0.3982, allocations: 3.694 MB / 425 MB, free: 8.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3982, allocations: 0 / 425 MB, free: 8.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3982, allocations: 0 / 425 MB, free: 8.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.265e-05/0.3983, allocations: 4 kB / 425 MB, free: 8.77 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.008217/0.4065, allocations: 2.208 MB / 427.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.4066, allocations: 12.03 kB / 427.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.4078, allocations: 174.1 kB / 427.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002256/0.4101, allocations: 0.995 MB / 428.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.4103, allocations: 179 kB / 428.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.4107, allocations: 99.91 kB / 428.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003225/0.4139, allocations: 1.761 MB / 430.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.414, allocations: 0 / 430.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001752/0.4141, allocations: 43.97 kB / 430.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.4143, allocations: 109.9 kB / 430.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003079/0.4174, allocations: 1.788 MB / 432.4 MB, free: 1.23 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.01318/0.4306, allocations: 6.705 MB / 439.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002082/0.4327, allocations: 1.248 MB / 440.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.4339, allocations: 0.769 MB / 441.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006228/0.4402, allocations: 4.267 MB / 445.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.769e-05/0.4402, allocations: 51.56 kB / 445.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008373/0.4411, allocations: 170.7 kB / 445.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.881e-06/0.4411, allocations: 0 / 445.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01946/0.4606, allocations: 5.695 MB / 451.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.547e-05/0.4607, allocations: 153.4 kB / 451.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001858/0.4626, allocations: 1.25 MB / 452.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.4628, allocations: 45.7 kB / 452.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004719/0.4632, allocations: 0.6168 MB / 453.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003815/0.4636, allocations: 382.5 kB / 453.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005317/0.4642, allocations: 291.4 kB / 454 MB, free: 10.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.505e-05/0.4643, allocations: 301.1 kB / 454.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.4655, allocations: 0.7231 MB / 455 MB, free: 9.695 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.4669, allocations: 1.068 MB / 456.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.4696, allocations: 1.743 MB / 457.8 MB, free: 6.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.208e-06/0.4696, allocations: 4 kB / 457.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004125/0.4737, allocations: 2.28 MB / 460.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.4738, allocations: 15.94 kB / 460.1 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.4738, allocations: 12.59 kB / 460.1 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006829/0.4806, allocations: 1.298 MB / 461.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.482, allocations: 299.5 kB / 461.7 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.4844, allocations: 1.604 MB / 463.3 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4858, allocations: 55.97 kB / 463.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.486, allocations: 71.97 kB / 463.4 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001661/0.4877, allocations: 0.9763 MB / 464.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001445/0.4891, allocations: 1.059 MB / 465.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002473/0.4916, allocations: 1.718 MB / 467.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.297e-05/0.4917, allocations: 11.94 kB / 467.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003802/0.4955, allocations: 2.195 MB / 469.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.4955, allocations: 8 kB / 469.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.4955, allocations: 15.98 kB / 469.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006196/0.5017, allocations: 1.097 MB / 470.5 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.5031, allocations: 311.5 kB / 470.8 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00202/0.5052, allocations: 1.453 MB / 472.3 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.5066, allocations: 55.97 kB / 472.3 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00027/0.5069, allocations: 71.95 kB / 472.4 MB, free: 7.633 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.0005274/0.5075, allocations: 279.8 kB / 472.7 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004489/0.5079, allocations: 142.3 kB / 472.8 MB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/0.5121, allocations: 2.082 MB / 474.9 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.5121, allocations: 12 kB / 474.9 MB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5121, allocations: 7.875 kB / 474.9 MB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5122, allocations: 11.97 kB / 474.9 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005731/0.5179, allocations: 3.575 MB / 478.5 MB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.5179, allocations: 0 / 478.5 MB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009021/0.5188, allocations: 195.7 kB / 478.7 MB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/0.5212, allocations: 0.8674 MB / 479.6 MB, free: 400 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.5213, allocations: 31.98 kB / 479.6 MB, free: 368 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002142/0.5235, allocations: 1.619 MB / 481.2 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.5235, allocations: 4.031 kB / 481.2 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004458/0.5279, allocations: 2.899 MB / 484.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007847/0.5287, allocations: 391.2 kB / 484.5 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003508/0.5291, allocations: 28 kB / 484.5 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.5302, allocations: 55.95 kB / 484.6 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.5305, allocations: 101.1 kB / 484.7 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.5306, allocations: 47.97 kB / 484.7 MB, free: 11.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001264/0.5319, allocations: 0.8441 MB / 485.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5319, allocations: 0 / 485.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003157/0.535, allocations: 1.167 MB / 486.7 MB, free: 9.148 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.002256/0.5373, allocations: 0.8574 MB / 487.6 MB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007559/0.5449, allocations: 3.289 MB / 490.9 MB, free: 4.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.5449, allocations: 3.938 kB / 490.9 MB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.5467, allocations: 0.8711 MB / 491.8 MB, free: 4.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/0.5501, allocations: 0.6633 MB / 492.4 MB, free: 3.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005793/0.5559, allocations: 3.169 MB / 495.6 MB, free: 296 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000968/0.5569, allocations: 1.288 MB / 496.9 MB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005322/0.5575, allocations: 147.3 kB / 497 MB, free: 14.83 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5575, allocations: 0 / 497 MB, free: 14.83 MB / 414.1 MB Notification: Performance of Templates: time 0.05088/0.6084, allocations: 36.01 MB / 0.5205 GB, free: 10.89 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