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.001608/0.001608, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.001897/0.001897, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.429/1.429, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 51.27 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09892, allocations: 49.44 MB / 350 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1969/0.2959, allocations: 30.28 MB / 380.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01794/0.3139, allocations: 15.73 MB / 396 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00242/0.3163, allocations: 68.69 kB / 396.1 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.3181, allocations: 0.5147 MB / 396.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005583/0.3238, allocations: 2.164 MB / 398.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009285/0.3331, allocations: 3.168 MB / 402 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007273/0.3404, allocations: 6.145 MB / 408.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001857/0.3423, allocations: 1.027 MB / 409.1 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003024/0.3453, allocations: 1.346 MB / 410.5 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.3486, allocations: 1.655 MB / 412.1 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006804/0.3493, allocations: 92 kB / 412.2 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005807/0.3551, allocations: 2.359 MB / 414.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001225/0.3564, allocations: 0.5491 MB / 415.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002024/0.3584, allocations: 0.8047 MB / 415.9 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005074/0.3635, allocations: 2.686 MB / 418.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3636, allocations: 4 kB / 418.6 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3636, allocations: 0 / 418.6 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-05/0.3636, allocations: 4 kB / 418.6 MB, free: 0.9453 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.005792/0.3694, allocations: 2.2 MB / 420.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3695, allocations: 8.031 kB / 420.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006411/0.3701, allocations: 174.1 kB / 421 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.3718, allocations: 1.003 MB / 422 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.372, allocations: 175.1 kB / 422.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.3722, allocations: 103.9 kB / 422.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.3754, allocations: 1.753 MB / 424 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/0.3755, allocations: 4 kB / 424 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/0.3756, allocations: 39.97 kB / 424.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/0.3758, allocations: 117.9 kB / 424.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003117/0.3789, allocations: 1.788 MB / 426 MB, free: 9.402 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.01288/0.3918, allocations: 6.711 MB / 432.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.3939, allocations: 1.245 MB / 433.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.3951, allocations: 0.7677 MB / 434.7 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006539/0.4016, allocations: 4.271 MB / 439 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.399e-05/0.4017, allocations: 43.56 kB / 439 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009566/0.4027, allocations: 206.6 kB / 439.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.691e-06/0.4027, allocations: 4 kB / 439.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.02007/0.4228, allocations: 5.675 MB / 444.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.891e-05/0.4229, allocations: 149.5 kB / 445 MB, free: 5.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/0.4248, allocations: 1.257 MB / 446.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/0.4251, allocations: 45.7 kB / 446.3 MB, free: 4.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005166/0.4256, allocations: 0.613 MB / 447 MB, free: 3.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005113/0.4261, allocations: 386.4 kB / 447.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006075/0.4268, allocations: 295.3 kB / 447.6 MB, free: 2.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4269, allocations: 301.1 kB / 447.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.4281, allocations: 0.7231 MB / 448.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.4297, allocations: 1.064 MB / 449.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002704/0.4324, allocations: 1.747 MB / 451.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.4325, allocations: 4 kB / 451.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004302/0.4368, allocations: 2.288 MB / 453.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.4368, allocations: 11.94 kB / 453.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.4369, allocations: 17.38 kB / 453.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007378/0.4442, allocations: 1.273 MB / 455 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.4457, allocations: 299.5 kB / 455.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.4483, allocations: 1.602 MB / 456.9 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.4498, allocations: 83.78 kB / 457 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/0.4501, allocations: 75.97 kB / 457.1 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001788/0.4519, allocations: 0.9762 MB / 458.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001515/0.4534, allocations: 1.059 MB / 459.1 MB, free: 6.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002679/0.4561, allocations: 1.718 MB / 460.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.001e-05/0.4562, allocations: 7.938 kB / 460.9 MB, free: 5.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004081/0.4603, allocations: 2.199 MB / 463.1 MB, free: 2.801 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.4603, allocations: 8 kB / 463.1 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.4603, allocations: 12 kB / 463.1 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006651/0.467, allocations: 1.094 MB / 464.2 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.4685, allocations: 307.5 kB / 464.5 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00226/0.4707, allocations: 1.451 MB / 465.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.4724, allocations: 84.61 kB / 466 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/0.4727, allocations: 71.97 kB / 466.1 MB, free: 15.75 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.0005588/0.4733, allocations: 267.8 kB / 466.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005306/0.4738, allocations: 150.2 kB / 466.5 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004445/0.4783, allocations: 2.092 MB / 468.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.4783, allocations: 16 kB / 468.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.4784, allocations: 7.922 kB / 468.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.4784, allocations: 3.984 kB / 468.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006074/0.4845, allocations: 3.59 MB / 472.2 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.4845, allocations: 0 / 472.2 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009969/0.4855, allocations: 195.8 kB / 472.4 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003786/0.4893, allocations: 0.9889 MB / 473.4 MB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/0.4895, allocations: 31.98 kB / 473.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002333/0.4919, allocations: 1.604 MB / 475 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4919, allocations: 0 / 475 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004921/0.4968, allocations: 2.922 MB / 477.9 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009593/0.4978, allocations: 395 kB / 478.3 MB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/0.4982, allocations: 20 kB / 478.3 MB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.4994, allocations: 71.94 kB / 478.4 MB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.4996, allocations: 101.1 kB / 478.5 MB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.4998, allocations: 55.91 kB / 478.6 MB, free: 3.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001326/0.5011, allocations: 0.848 MB / 479.4 MB, free: 2.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5011, allocations: 0 / 479.4 MB, free: 2.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003242/0.5044, allocations: 1.16 MB / 480.6 MB, free: 1.109 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.0022/0.5066, allocations: 0.8379 MB / 481.4 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007053/0.5137, allocations: 2.846 MB / 484.3 MB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/0.5137, allocations: 6 kB / 484.3 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002034/0.5158, allocations: 0.8634 MB / 485.1 MB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/0.5192, allocations: 0.6189 MB / 485.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006643/0.5259, allocations: 3.652 MB / 489.4 MB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.5269, allocations: 1.284 MB / 490.7 MB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006643/0.5276, allocations: 139.4 kB / 490.8 MB, free: 6.82 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5276, allocations: 0 / 490.8 MB, free: 6.82 MB / 398.1 MB Notification: Performance of Templates: time 0.05194/0.5796, allocations: 35.74 MB / 0.5142 GB, free: 3.184 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/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_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches