Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001084/0.001084, allocations: 114.5 kB / 17.93 MB, free: 5.566 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.001102/0.001102, allocations: 189.9 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 224.7 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001182, allocations: 47.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1069, allocations: 46.63 MB / 327.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03164/0.1386, allocations: 30.24 MB / 357.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02053/0.1592, allocations: 15.31 MB / 373 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/0.1617, allocations: 63.5 kB / 373 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.1637, allocations: 0.5207 MB / 373.6 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006813/0.1705, allocations: 2.139 MB / 375.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009572/0.1801, allocations: 3.418 MB / 379.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2027/0.3829, allocations: 4.157 MB / 383.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002444/0.3854, allocations: 1.15 MB / 384.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004168/0.3895, allocations: 1.559 MB / 386 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.3936, allocations: 1.729 MB / 387.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008659/0.3945, allocations: 161.9 kB / 387.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006512/0.401, allocations: 2.414 MB / 390.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001423/0.4025, allocations: 0.6179 MB / 390.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001884/0.4044, allocations: 0.8762 MB / 391.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0061/0.4105, allocations: 2.703 MB / 394.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.4106, allocations: 0 / 394.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.123e-06/0.4106, allocations: 0 / 394.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.396e-05/0.4106, allocations: 1.375 kB / 394.5 MB, free: 11.7 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.006414/0.417, allocations: 2.197 MB / 396.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.4171, allocations: 19.11 kB / 396.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006453/0.4178, allocations: 171.6 kB / 396.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.4194, allocations: 1.001 MB / 397.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.4195, allocations: 180.9 kB / 398 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/0.4197, allocations: 105 kB / 398.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002784/0.4225, allocations: 1.752 MB / 399.9 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.4225, allocations: 6.906 kB / 399.9 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.4227, allocations: 41.67 kB / 399.9 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/0.4228, allocations: 117.9 kB / 400.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002672/0.4255, allocations: 1.779 MB / 401.8 MB, free: 9.898 MB / 318.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.01113/0.4367, allocations: 6.711 MB / 408.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.4383, allocations: 1.233 MB / 409.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009443/0.4393, allocations: 0.7642 MB / 410.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005436/0.4447, allocations: 4.276 MB / 414.8 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.4448, allocations: 54.77 kB / 414.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001042/0.4459, allocations: 192.7 kB / 415.1 MB, free: 2.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 5.32e-06/0.4459, allocations: 3.984 kB / 415.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01909/0.465, allocations: 5.687 MB / 420.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.4651, allocations: 141.5 kB / 420.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.4673, allocations: 1.253 MB / 422.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003026/0.4676, allocations: 49.7 kB / 422.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005308/0.4682, allocations: 0.6037 MB / 422.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004813/0.4686, allocations: 400.6 kB / 423.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005136/0.4692, allocations: 291.3 kB / 423.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4693, allocations: 305.1 kB / 423.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.4705, allocations: 0.7191 MB / 424.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/0.4721, allocations: 1.06 MB / 425.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/0.4747, allocations: 1.758 MB / 427.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.4747, allocations: 0 / 427.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004177/0.4789, allocations: 2.279 MB / 429.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.479, allocations: 11.44 kB / 429.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.479, allocations: 12.88 kB / 429.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007498/0.4865, allocations: 1.292 MB / 430.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.4881, allocations: 293.4 kB / 431.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002948/0.4911, allocations: 1.609 MB / 432.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.493, allocations: 79.8 kB / 432.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/0.4934, allocations: 71.97 kB / 432.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001899/0.4953, allocations: 0.9771 MB / 433.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001448/0.4968, allocations: 1.062 MB / 435 MB, free: 14.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002574/0.4993, allocations: 1.722 MB / 436.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.068e-05/0.4994, allocations: 4 kB / 436.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004064/0.5034, allocations: 2.19 MB / 438.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.5035, allocations: 15.98 kB / 438.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.5035, allocations: 10.05 kB / 438.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006602/0.5101, allocations: 1.105 MB / 440 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/0.5117, allocations: 309.1 kB / 440.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.5139, allocations: 1.444 MB / 441.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.5158, allocations: 87.8 kB / 441.9 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002996/0.5162, allocations: 67.97 kB / 441.9 MB, free: 7.676 MB / 350.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.0006526/0.5168, allocations: 269.8 kB / 442.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005227/0.5174, allocations: 150.2 kB / 442.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.5221, allocations: 2.088 MB / 444.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-05/0.5222, allocations: 16 kB / 444.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.5222, allocations: 0 / 444.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.019e-05/0.5222, allocations: 15.89 kB / 444.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006783/0.529, allocations: 3.583 MB / 448 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.5291, allocations: 0 / 448 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000998/0.5301, allocations: 193.9 kB / 448.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00253/0.5326, allocations: 0.8559 MB / 449.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001512/0.5328, allocations: 35.97 kB / 449.1 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002421/0.5352, allocations: 1.606 MB / 450.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5353, allocations: 4 kB / 450.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005114/0.5404, allocations: 2.907 MB / 453.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.5417, allocations: 395.1 kB / 454 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006022/0.5423, allocations: 20 kB / 454 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.5439, allocations: 80.16 kB / 454.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002999/0.5442, allocations: 100.7 kB / 454.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.5444, allocations: 55.91 kB / 454.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001504/0.5459, allocations: 0.8479 MB / 455.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5459, allocations: 4 kB / 455.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004654/0.5506, allocations: 1.16 MB / 456.3 MB, free: 9.242 MB / 366.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.003232/0.5538, allocations: 0.8528 MB / 457.1 MB, free: 8.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009239/0.5631, allocations: 3.29 MB / 460.4 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/0.5632, allocations: 0 / 460.4 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002208/0.5654, allocations: 0.8733 MB / 461.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004205/0.5696, allocations: 0.6553 MB / 462 MB, free: 3.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007765/0.5774, allocations: 3.648 MB / 465.6 MB, free: 80 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.5787, allocations: 1.284 MB / 466.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007515/0.5794, allocations: 151.3 kB / 467 MB, free: 14.62 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5794, allocations: 0 / 467 MB, free: 14.62 MB / 382.1 MB Notification: Performance of Templates: time 0.05885/0.6383, allocations: 35.75 MB / 0.491 GB, free: 10.91 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches