Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01082/0.01082, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.502/3.502, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002061/0.002061, allocations: 94.81 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004485/0.0004486, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1549, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.04031/0.1953, allocations: 13.87 MB / 388.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4559/0.6512, allocations: 6.136 MB / 394.5 MB, free: 9.156 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001932/0.6532, allocations: 30.19 kB / 394.6 MB, free: 9.156 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.6558, allocations: 293.4 kB / 394.9 MB, free: 9.156 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007049/0.6629, allocations: 0.8807 MB / 395.7 MB, free: 9.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01114/0.6741, allocations: 1.372 MB / 397.1 MB, free: 9.125 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005431/0.6796, allocations: 1.226 MB / 398.3 MB, free: 9.117 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00235/0.682, allocations: 0.493 MB / 398.8 MB, free: 9.062 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003556/0.6856, allocations: 0.6071 MB / 399.4 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/0.6886, allocations: 0.5152 MB / 399.9 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006671/0.6893, allocations: 42.59 kB / 400 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006901/0.6962, allocations: 1.092 MB / 401.1 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.6977, allocations: 252.7 kB / 401.3 MB, free: 8.855 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00127/0.6991, allocations: 178.1 kB / 401.5 MB, free: 8.797 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006225/0.7054, allocations: 1.285 MB / 402.8 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.7054, allocations: 0 / 402.8 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.3e-06/0.7055, allocations: 3.938 kB / 402.8 MB, free: 8.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.065e-05/0.7055, allocations: 2.406 kB / 402.8 MB, free: 8.688 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.007146/0.7127, allocations: 1.103 MB / 403.9 MB, free: 7.988 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001149/0.7129, allocations: 15.58 kB / 403.9 MB, free: 7.984 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001783/0.7147, allocations: 97.69 kB / 404 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003385/0.7181, allocations: 0.5767 MB / 404.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/0.7185, allocations: 105.6 kB / 404.7 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005014/0.719, allocations: 52.39 kB / 404.7 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004974/0.724, allocations: 0.8939 MB / 405.6 MB, free: 7.387 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.566e-05/0.7241, allocations: 0 / 405.6 MB, free: 7.387 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/0.7244, allocations: 28.89 kB / 405.7 MB, free: 7.383 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002173/0.7246, allocations: 52.42 kB / 405.7 MB, free: 7.367 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004546/0.7292, allocations: 0.8382 MB / 406.6 MB, free: 7.199 MB / 282.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.0172/0.7465, allocations: 3.472 MB / 410 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/0.7495, allocations: 0.671 MB / 410.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007964/0.7576, allocations: 2.052 MB / 412.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.965e-05/0.7577, allocations: 42.59 kB / 412.8 MB, free: 2.316 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 5.781e-06/0.7578, allocations: 0 / 412.8 MB, free: 2.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.0209/0.7787, allocations: 2.856 MB / 415.6 MB, free: 0.668 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.366e-05/0.7788, allocations: 93.17 kB / 415.7 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/0.781, allocations: 0.6716 MB / 416.4 MB, free: 176 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003544/0.7814, allocations: 40.11 kB / 416.4 MB, free: 132 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005878/0.782, allocations: 352 kB / 416.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006689/0.7827, allocations: 226.8 kB / 417 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.7829, allocations: 17.31 kB / 417 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002954/0.7833, allocations: 338.3 kB / 417.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.7854, allocations: 356.7 kB / 417.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002167/0.7876, allocations: 0.5088 MB / 418.2 MB, free: 14.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/0.7895, allocations: 420.6 kB / 418.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.7896, allocations: 0 / 418.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.006614/0.7963, allocations: 1.1 MB / 419.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001302/0.7976, allocations: 1.663 MB / 421.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.995e-05/0.7978, allocations: 2.812 kB / 421.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003562/0.8014, allocations: 436 kB / 421.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/0.8035, allocations: 159 kB / 422 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.807, allocations: 1.024 MB / 423 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.8092, allocations: 39.97 kB / 423 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003612/0.8096, allocations: 35.98 kB / 423.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.8096, allocations: 4 kB / 423.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005465/0.8151, allocations: 1.004 MB / 424.1 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.076e-05/0.8152, allocations: 7.938 kB / 424.1 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/0.8172, allocations: 316.7 kB / 424.4 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001992/0.8193, allocations: 167.7 kB / 424.6 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00285/0.8222, allocations: 0.8918 MB / 425.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.8239, allocations: 43.89 kB / 425.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002557/0.8242, allocations: 35.98 kB / 425.5 MB, free: 8.336 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001221/0.8254, allocations: 324.9 kB / 425.8 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006106/0.8261, allocations: 83.02 kB / 425.9 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005968/0.8321, allocations: 1.095 MB / 427 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.698e-05/0.8322, allocations: 12 kB / 427 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.8322, allocations: 0 / 427 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.122e-05/0.8323, allocations: 3.984 kB / 427 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.8423, allocations: 1.996 MB / 429 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/0.8424, allocations: 7.938 kB / 429 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/0.8442, allocations: 123.8 kB / 429.2 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003727/0.848, allocations: 449.3 kB / 429.6 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002669/0.8484, allocations: 12 kB / 429.6 MB, free: 4.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003169/0.8516, allocations: 1.033 MB / 430.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.8516, allocations: 0 / 430.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007617/0.8593, allocations: 1.591 MB / 432.2 MB, free: 1.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.8606, allocations: 256 kB / 432.5 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/0.861, allocations: 16 kB / 432.5 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/0.8629, allocations: 51.86 kB / 432.6 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000419/0.8633, allocations: 52.58 kB / 432.6 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/0.8636, allocations: 31.97 kB / 432.6 MB, free: 1.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001687/0.8653, allocations: 475 kB / 433.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.302e-06/0.8654, allocations: 0 / 433.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.005728/0.8711, allocations: 0.5779 MB / 433.7 MB, free: 60 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0031/0.8743, allocations: 479.5 kB / 434.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00935/0.8837, allocations: 1.373 MB / 435.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/0.8838, allocations: 4.312 kB / 435.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002982/0.8868, allocations: 461.6 kB / 436 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005123/0.892, allocations: 352.9 kB / 436.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009407/0.9015, allocations: 2.077 MB / 438.4 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.9029, allocations: 1.011 MB / 439.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008489/0.9038, allocations: 79.41 kB / 439.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.853e-06/0.9038, allocations: 0 / 439.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of Templates: time 0.07484/0.9787, allocations: 18.89 MB / 458.4 MB, free: 7.32 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches