Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 200 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 229.5 MB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008677/0.0008677, allocations: 96.56 kB / 299.8 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002269, allocations: 8 kB / 360.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2031, allocations: 51.41 MB / 412 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01973/0.2229, allocations: 30.02 MB / 442.1 MB, free: 11.33 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.2466, allocations: 20.9 MB / 463 MB, free: 4.988 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002054/0.2487, allocations: 63.44 kB / 463 MB, free: 4.926 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.2505, allocations: 0.5168 MB / 463.5 MB, free: 4.406 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.2563, allocations: 2.155 MB / 465.7 MB, free: 2.242 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007863/0.2642, allocations: 3.141 MB / 468.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00656/0.2708, allocations: 6.179 MB / 475 MB, free: 8.902 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.2727, allocations: 1.005 MB / 476 MB, free: 7.863 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002729/0.2755, allocations: 1.397 MB / 477.4 MB, free: 6.461 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.2779, allocations: 1.647 MB / 479.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000294/0.2782, allocations: 88 kB / 479.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004563/0.2828, allocations: 2.277 MB / 481.4 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007399/0.2836, allocations: 0.5296 MB / 482 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.2847, allocations: 0.8219 MB / 482.8 MB, free: 1.078 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005503/0.2902, allocations: 3.611 MB / 486.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2903, allocations: 0 / 486.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2903, allocations: 0 / 486.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.766e-05/0.2903, allocations: 0 / 486.4 MB, free: 13.46 MB / 362.7 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.00434/0.2946, allocations: 1.897 MB / 488.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2947, allocations: 8.031 kB / 488.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004544/0.2952, allocations: 178 kB / 488.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.2967, allocations: 1.007 MB / 489.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.2969, allocations: 179 kB / 489.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.2971, allocations: 111.9 kB / 489.8 MB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.2999, allocations: 1.741 MB / 491.5 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.2999, allocations: 0 / 491.5 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.3, allocations: 39.97 kB / 491.5 MB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/0.3002, allocations: 121.9 kB / 491.7 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002896/0.3031, allocations: 1.776 MB / 493.4 MB, free: 6.23 MB / 362.7 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.0116/0.3147, allocations: 6.742 MB / 0.4885 GB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.3166, allocations: 1.234 MB / 0.4897 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.3177, allocations: 0.7612 MB / 0.4904 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005911/0.3236, allocations: 4.287 MB / 0.4946 GB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/0.3237, allocations: 47.56 kB / 0.4946 GB, free: 8.387 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007893/0.3245, allocations: 210.6 kB / 0.4948 GB, free: 8.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 2.796e-06/0.3245, allocations: 0 / 0.4948 GB, free: 8.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=112): time 0.01771/0.3422, allocations: 5.741 MB / 0.5004 GB, free: 2.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.3423, allocations: 141.5 kB / 0.5006 GB, free: 2.215 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.3439, allocations: 1.242 MB / 0.5018 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001206/0.3441, allocations: 53.7 kB / 0.5018 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.3445, allocations: 0.6052 MB / 0.5024 GB, free: 300 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1684/0.5129, allocations: 386.5 kB / 0.5028 GB, free: 95.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.5131, allocations: 29.03 kB / 0.5028 GB, free: 95.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.5133, allocations: 361.7 kB / 0.5032 GB, free: 95.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.5147, allocations: 0.7092 MB / 0.5039 GB, free: 95.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.516, allocations: 1.062 MB / 0.5049 GB, free: 94.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/0.5183, allocations: 1.728 MB / 0.5066 GB, free: 93.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.5183, allocations: 3.062 kB / 0.5066 GB, free: 93.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003763/0.5221, allocations: 2.276 MB / 0.5088 GB, free: 92.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.5223, allocations: 386 kB / 0.5092 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.5223, allocations: 12.59 kB / 0.5092 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006758/0.5291, allocations: 1.275 MB / 0.5104 GB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.5305, allocations: 301.7 kB / 0.5107 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.5327, allocations: 1.605 MB / 0.5123 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.5342, allocations: 84.38 kB / 0.5124 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.5343, allocations: 73 kB / 0.5124 GB, free: 91.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.5343, allocations: 5.188 kB / 0.5125 GB, free: 91.25 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002901/0.5372, allocations: 2.026 MB / 0.5144 GB, free: 90.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.5373, allocations: 10.44 kB / 0.5144 GB, free: 90.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005642/0.5429, allocations: 1.112 MB / 0.5155 GB, free: 89.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.5442, allocations: 307.2 kB / 0.5158 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.5459, allocations: 1.462 MB / 0.5172 GB, free: 88.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.5471, allocations: 82.45 kB / 0.5173 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.5473, allocations: 68.75 kB / 0.5174 GB, free: 88.82 MB / 378.7 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 (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 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.0007225/0.548, allocations: 467.6 kB / 0.5178 GB, free: 88.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.5482, allocations: 147.9 kB / 0.518 GB, free: 88.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.5515, allocations: 2.088 MB / 0.52 GB, free: 86.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.5516, allocations: 12 kB / 0.52 GB, free: 86.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5516, allocations: 0 / 0.52 GB, free: 86.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.5516, allocations: 3.984 kB / 0.52 GB, free: 86.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.5559, allocations: 3.586 MB / 0.5235 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.5559, allocations: 0 / 0.5235 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008463/0.5568, allocations: 195.7 kB / 0.5237 GB, free: 82.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003246/0.56, allocations: 0.9909 MB / 0.5247 GB, free: 81.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.5602, allocations: 30.83 kB / 0.5247 GB, free: 81.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/0.5618, allocations: 1.607 MB / 0.5263 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5619, allocations: 4.562 kB / 0.5263 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.5654, allocations: 2.9 MB / 0.5291 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006951/0.5661, allocations: 414.8 kB / 0.5295 GB, free: 76.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.5663, allocations: 20 kB / 0.5295 GB, free: 76.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009489/0.5672, allocations: 89.09 kB / 0.5296 GB, free: 76.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.5675, allocations: 93.17 kB / 0.5297 GB, free: 76.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.5676, allocations: 51.97 kB / 0.5298 GB, free: 76.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008782/0.5685, allocations: 0.8363 MB / 0.5306 GB, free: 75.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5685, allocations: 96 / 0.5306 GB, free: 75.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002352/0.5708, allocations: 1.165 MB / 0.5317 GB, free: 74.62 MB / 378.7 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.001511/0.5723, allocations: 0.8604 MB / 0.5326 GB, free: 73.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004893/0.5773, allocations: 2.789 MB / 0.5353 GB, free: 71.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.5773, allocations: 0 / 0.5353 GB, free: 71.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.5787, allocations: 0.8711 MB / 0.5361 GB, free: 70.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/0.5817, allocations: 0.6244 MB / 0.5367 GB, free: 69.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004985/0.5867, allocations: 3.715 MB / 0.5404 GB, free: 65.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005869/0.5873, allocations: 1.3 MB / 0.5416 GB, free: 64.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001926/0.5892, allocations: 0.5822 MB / 0.5422 GB, free: 64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003506/0.5896, allocations: 127.4 kB / 0.5423 GB, free: 63.88 MB / 378.7 MB Notification: Performance of SimCode: time 5.62e-07/0.5896, allocations: 0 / 0.5423 GB, free: 63.88 MB / 378.7 MB Notification: Performance of Templates: time 0.04775/0.6373, allocations: 41.45 MB / 0.5828 GB, free: 22.73 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches