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.001159/0.001159, allocations: 93.41 kB / 17.3 MB, free: 6.395 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.001688/0.001688, allocations: 173.3 kB / 18.2 MB, free: 5.551 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.583/1.583, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004614/0.0004615, allocations: 10.88 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1149, allocations: 47.59 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03069/0.1457, allocations: 29.53 MB / 358.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02465/0.1704, allocations: 15.5 MB / 374 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003041/0.1735, allocations: 59.5 kB / 374 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.1762, allocations: 0.5168 MB / 374.6 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008399/0.1847, allocations: 2.159 MB / 376.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01099/0.1957, allocations: 3.168 MB / 379.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2312/0.4269, allocations: 6.14 MB / 386 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002514/0.4294, allocations: 1.014 MB / 387 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004211/0.4337, allocations: 1.316 MB / 388.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003954/0.4376, allocations: 1.653 MB / 390 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000419/0.4381, allocations: 85.75 kB / 390.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005668/0.4438, allocations: 2.356 MB / 392.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009959/0.4448, allocations: 0.5457 MB / 393 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001438/0.4462, allocations: 0.817 MB / 393.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006842/0.4531, allocations: 3.608 MB / 397.4 MB, free: 11.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4531, allocations: 0 / 397.4 MB, free: 11.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4531, allocations: 0 / 397.4 MB, free: 11.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.952e-05/0.4532, allocations: 3.375 kB / 397.4 MB, free: 11.42 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.004597/0.4578, allocations: 1.892 MB / 399.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.4578, allocations: 12.12 kB / 399.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004884/0.4583, allocations: 175 kB / 399.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.4596, allocations: 0.9996 MB / 400.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.4598, allocations: 176.8 kB / 400.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.46, allocations: 96.22 kB / 400.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002337/0.4623, allocations: 1.761 MB / 402.5 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.4623, allocations: 0 / 402.5 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.4625, allocations: 44.16 kB / 402.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.4627, allocations: 118.2 kB / 402.7 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002441/0.4651, allocations: 1.778 MB / 404.5 MB, free: 8.738 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.009234/0.4743, allocations: 6.748 MB / 411.2 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.4759, allocations: 1.239 MB / 412.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009093/0.4768, allocations: 0.7674 MB / 413.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004546/0.4814, allocations: 4.286 MB / 417.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.4814, allocations: 52.12 kB / 417.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007037/0.4821, allocations: 204.4 kB / 417.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.036e-06/0.4821, allocations: 0 / 417.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01792/0.5001, allocations: 5.762 MB / 423.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.5002, allocations: 141.5 kB / 423.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.5025, allocations: 1.256 MB / 424.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002466/0.5027, allocations: 49.7 kB / 425 MB, free: 9.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005952/0.5033, allocations: 0.6128 MB / 425.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005141/0.5039, allocations: 387.8 kB / 426 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.5041, allocations: 121.6 kB / 426.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.5043, allocations: 305.1 kB / 426.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.5056, allocations: 0.7105 MB / 427.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.5071, allocations: 1.059 MB / 428.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/0.5097, allocations: 1.752 MB / 429.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/0.5097, allocations: 4 kB / 429.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004141/0.5138, allocations: 2.282 MB / 432.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003118/0.5142, allocations: 385.2 kB / 432.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.5142, allocations: 12 kB / 432.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006749/0.5209, allocations: 1.284 MB / 433.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.5223, allocations: 302.5 kB / 434.1 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.5249, allocations: 1.599 MB / 435.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.5266, allocations: 87.8 kB / 435.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.5268, allocations: 75.95 kB / 435.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.5268, allocations: 7.938 kB / 435.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003434/0.5303, allocations: 2.027 MB / 437.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.5303, allocations: 12 kB / 437.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006091/0.5364, allocations: 1.12 MB / 439.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.5376, allocations: 305.7 kB / 439.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.5399, allocations: 1.468 MB / 440.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.5414, allocations: 88.36 kB / 440.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.5416, allocations: 67.97 kB / 441 MB, free: 9.598 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.0009935/0.5426, allocations: 466.6 kB / 441.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.5429, allocations: 146.4 kB / 441.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004004/0.5469, allocations: 2.093 MB / 443.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.5469, allocations: 12 kB / 443.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5469, allocations: 4 kB / 443.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.547, allocations: 7.969 kB / 443.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005635/0.5526, allocations: 3.581 MB / 447.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.5526, allocations: 4 kB / 447.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000884/0.5535, allocations: 192.5 kB / 447.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003654/0.5572, allocations: 1.001 MB / 448.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.5573, allocations: 27.98 kB / 448.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002167/0.5595, allocations: 1.613 MB / 450.1 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5595, allocations: 0 / 450.1 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004985/0.5645, allocations: 2.914 MB / 453 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.5656, allocations: 407.1 kB / 453.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.5658, allocations: 20 kB / 453.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.5669, allocations: 91.78 kB / 453.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.5671, allocations: 93.17 kB / 453.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.5673, allocations: 51.97 kB / 453.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.5685, allocations: 0.848 MB / 454.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5685, allocations: 0.6562 kB / 454.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003659/0.5722, allocations: 1.163 MB / 455.7 MB, free: 10.81 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.002346/0.5746, allocations: 0.8477 MB / 456.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006218/0.5808, allocations: 2.822 MB / 459.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.5808, allocations: 0 / 459.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.5826, allocations: 0.879 MB / 460.2 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00336/0.586, allocations: 0.6272 MB / 460.9 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006134/0.5922, allocations: 3.721 MB / 464.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008998/0.5931, allocations: 1.292 MB / 465.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002291/0.5954, allocations: 0.5895 MB / 466.5 MB, free: 160 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003497/0.5957, allocations: 127.4 kB / 466.6 MB, free: 32 kB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5958, allocations: 0 / 466.6 MB, free: 32 kB / 366.1 MB Notification: Performance of Templates: time 0.06922/0.665, allocations: 41.41 MB / 0.4961 GB, free: 6.742 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/jenkins/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