Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000929/0.0009289, allocations: 94.97 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009917/0.0009917, allocations: 205.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 8 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1083, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2391/0.3475, allocations: 13.91 MB / 372 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.3577, allocations: 6.216 MB / 378.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009287/0.3586, allocations: 28.97 kB / 378.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008862/0.3595, allocations: 289 kB / 378.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002723/0.3623, allocations: 0.8974 MB / 379.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00464/0.3669, allocations: 1.364 MB / 380.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002455/0.3694, allocations: 1.225 MB / 382 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009107/0.3703, allocations: 0.4928 MB / 382.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.3715, allocations: 0.6183 MB / 383.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008454/0.3723, allocations: 0.5114 MB / 383.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.3724, allocations: 42.28 kB / 383.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00305/0.3755, allocations: 1.11 MB / 384.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000316/0.3758, allocations: 255.7 kB / 385 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.3761, allocations: 173.6 kB / 385.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001818/0.3779, allocations: 1.293 MB / 386.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.3779, allocations: 1 kB / 386.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3779, allocations: 0 / 386.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.3779, allocations: 0 / 386.5 MB, free: 8.344 MB / 302.1 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.002163/0.3801, allocations: 1.116 MB / 387.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.3801, allocations: 10.28 kB / 387.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002891/0.3804, allocations: 93.08 kB / 387.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008911/0.3813, allocations: 0.5775 MB / 388.3 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.828e-05/0.3814, allocations: 107.2 kB / 388.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3815, allocations: 53.03 kB / 388.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.3829, allocations: 0.8888 MB / 389.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.3829, allocations: 0 / 389.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.555e-05/0.383, allocations: 32.44 kB / 389.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.389e-05/0.3831, allocations: 48.75 kB / 389.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.3843, allocations: 0.8418 MB / 390.2 MB, free: 6.191 MB / 302.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.004955/0.3893, allocations: 3.485 MB / 393.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000896/0.3902, allocations: 0.6607 MB / 394.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002392/0.3926, allocations: 2.053 MB / 396.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.3927, allocations: 38.44 kB / 396.5 MB, free: 1.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 1.654e-06/0.3927, allocations: 0 / 396.5 MB, free: 1.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006264/0.3989, allocations: 2.862 MB / 399.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.399, allocations: 84.48 kB / 399.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008162/0.3998, allocations: 0.6747 MB / 400.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.821e-05/0.3999, allocations: 37.33 kB / 400.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.4002, allocations: 336.9 kB / 400.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.4004, allocations: 229.4 kB / 400.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.4004, allocations: 15.06 kB / 400.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4006, allocations: 387.2 kB / 401.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005389/0.4012, allocations: 354.2 kB / 401.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006216/0.4018, allocations: 0.513 MB / 401.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006324/0.4024, allocations: 410.5 kB / 402.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4024, allocations: 0 / 402.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001824/0.4043, allocations: 1.145 MB / 403.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007138/0.405, allocations: 1.659 MB / 405.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.405, allocations: 6.219 kB / 405.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.4062, allocations: 445.6 kB / 405.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.4068, allocations: 154.1 kB / 405.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.4079, allocations: 1.028 MB / 406.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006321/0.4086, allocations: 40.14 kB / 406.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-05/0.4087, allocations: 33.23 kB / 406.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.4087, allocations: 3.594 kB / 406.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001743/0.4104, allocations: 1.004 MB / 407.8 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.4105, allocations: 4 kB / 407.8 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006585/0.4111, allocations: 320.7 kB / 408.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.4118, allocations: 163.8 kB / 408.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009299/0.4127, allocations: 0.9034 MB / 409.2 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005855/0.4133, allocations: 47.88 kB / 409.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.779e-05/0.4134, allocations: 35.98 kB / 409.3 MB, free: 7.703 MB / 318.1 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.0005023/0.4139, allocations: 328.9 kB / 409.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.4141, allocations: 83.02 kB / 409.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.416, allocations: 1.084 MB / 410.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.425e-06/0.416, allocations: 8 kB / 410.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.416, allocations: 4 kB / 410.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.4161, allocations: 3.984 kB / 410.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.4192, allocations: 2.008 MB / 412.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.4192, allocations: 4 kB / 412.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005596/0.4198, allocations: 115.8 kB / 412.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001192/0.421, allocations: 453.4 kB / 413.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.164e-05/0.421, allocations: 24.98 kB / 413.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.4222, allocations: 1.023 MB / 414.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4222, allocations: 0 / 414.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.4245, allocations: 1.591 MB / 416 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000521/0.4251, allocations: 256 kB / 416.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.4252, allocations: 16 kB / 416.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005826/0.4258, allocations: 51.89 kB / 416.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.4259, allocations: 53.33 kB / 416.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.878e-05/0.426, allocations: 31.97 kB / 416.4 MB, free: 476 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006072/0.4266, allocations: 475 kB / 416.9 MB, free: 4 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4266, allocations: 0 / 416.9 MB, free: 4 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001917/0.4285, allocations: 0.574 MB / 417.4 MB, free: 15.43 MB / 334.1 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.00109/0.4296, allocations: 492.2 kB / 417.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.4324, allocations: 1.381 MB / 419.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4324, allocations: 256 / 419.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008883/0.4333, allocations: 467.5 kB / 419.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.4349, allocations: 351 kB / 420.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.4381, allocations: 2.024 MB / 422.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.4387, allocations: 1.007 MB / 423.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.4397, allocations: 306.6 kB / 423.4 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.4399, allocations: 75.41 kB / 423.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4399, allocations: 0 / 423.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of Templates: time 0.03351/0.4734, allocations: 21.23 MB / 444.7 MB, free: 4.258 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches