Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003056/0.003059, allocations: 182.6 kB / 16.4 MB, free: 5.75 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.791/3.791, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001943/0.001943, allocations: 95.33 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006309/0.0006311, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5287/0.5294, allocations: 47.58 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.0358/0.5652, allocations: 15.03 MB / 389.6 MB, free: 33.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01704/0.5824, allocations: 5.876 MB / 395.4 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.5843, allocations: 27.75 kB / 395.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.5865, allocations: 330.5 kB / 395.8 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00541/0.592, allocations: 0.8257 MB / 396.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008731/0.6008, allocations: 1.45 MB / 398.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003897/0.6047, allocations: 1.09 MB / 399.2 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00161/0.6064, allocations: 434 kB / 399.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002466/0.6089, allocations: 0.6153 MB / 400.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.6107, allocations: 490.3 kB / 400.7 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003075/0.6111, allocations: 36 kB / 400.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004239/0.6153, allocations: 0.9908 MB / 401.7 MB, free: 21.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008336/0.6162, allocations: 215.4 kB / 401.9 MB, free: 21.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005123/0.6168, allocations: 181.2 kB / 402.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0041/0.6209, allocations: 1.217 MB / 403.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.621, allocations: 0 / 403.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.998e-06/0.621, allocations: 0 / 403.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.515e-05/0.621, allocations: 0 / 403.3 MB, free: 20.04 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.004601/0.6256, allocations: 1.1 MB / 404.4 MB, free: 18.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.6257, allocations: 12.03 kB / 404.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.6268, allocations: 98.97 kB / 404.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002136/0.6289, allocations: 0.5424 MB / 405.1 MB, free: 18.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.6292, allocations: 104.3 kB / 405.2 MB, free: 18.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.6294, allocations: 44 kB / 405.2 MB, free: 18.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.6322, allocations: 0.793 MB / 406 MB, free: 17.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.855e-05/0.6323, allocations: 3.938 kB / 406 MB, free: 17.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.6325, allocations: 27.97 kB / 406 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.6326, allocations: 36.98 kB / 406.1 MB, free: 17.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.6352, allocations: 0.6869 MB / 406.7 MB, free: 16.43 MB / 298.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.01026/0.6455, allocations: 3.475 MB / 410.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.6471, allocations: 423.5 kB / 410.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003811/0.651, allocations: 1.354 MB / 412 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.6521, allocations: 349.1 kB / 412.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 5.551e-06/0.6522, allocations: 0 / 412.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.008362/0.6605, allocations: 1.865 MB / 414.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.6607, allocations: 269 kB / 414.5 MB, free: 8.141 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.6628, allocations: 0.7701 MB / 415.2 MB, free: 7.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.6631, allocations: 33.7 kB / 415.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004845/0.6636, allocations: 421.5 kB / 415.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002694/0.6639, allocations: 134.1 kB / 415.8 MB, free: 6.773 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.525e-05/0.664, allocations: 15.94 kB / 415.8 MB, free: 6.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6642, allocations: 338.8 kB / 416.2 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.6652, allocations: 253.5 kB / 416.4 MB, free: 6.168 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.6665, allocations: 499.8 kB / 416.9 MB, free: 5.574 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.6677, allocations: 344.5 kB / 417.2 MB, free: 5.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.6677, allocations: 3.953 kB / 417.2 MB, free: 5.223 MB / 298.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003706/0.6715, allocations: 0.8985 MB / 418.1 MB, free: 4.312 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009141/0.6724, allocations: 2.559 MB / 420.7 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/0.6725, allocations: 8 kB / 420.7 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.6738, allocations: 136.7 kB / 420.8 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.6752, allocations: 139.8 kB / 421 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.6765, allocations: 0.681 MB / 421.6 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006086/0.6826, allocations: 48.05 kB / 421.7 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002441/0.6829, allocations: 35.98 kB / 421.7 MB, free: 484 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.6829, allocations: 4 kB / 421.7 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008052/0.691, allocations: 0.8587 MB / 422.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.507e-05/0.6911, allocations: 11.98 kB / 422.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008732/0.692, allocations: 116.8 kB / 422.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00555/0.6976, allocations: 131.8 kB / 422.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001324/0.699, allocations: 0.6538 MB / 423.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.7004, allocations: 47.97 kB / 423.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001795/0.7006, allocations: 28 kB / 423.6 MB, free: 14.59 MB / 314.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.005655/0.7063, allocations: 401.1 kB / 424 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003917/0.7067, allocations: 83.06 kB / 424 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003169/0.7099, allocations: 0.7056 MB / 424.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.71, allocations: 4 kB / 424.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.71, allocations: 0 / 424.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.71, allocations: 0 / 424.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009835/0.7199, allocations: 1.399 MB / 426.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.72, allocations: 0 / 426.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007917/0.7208, allocations: 67.89 kB / 426.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005431/0.7262, allocations: 128.8 kB / 426.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001567/0.7265, allocations: 11.98 kB / 426.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.7278, allocations: 0.6654 MB / 427 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/0.7279, allocations: 3.984 kB / 427 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008144/0.736, allocations: 1.023 MB / 428.1 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005956/0.7367, allocations: 160.1 kB / 428.2 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003342/0.7371, allocations: 24.05 kB / 428.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005669/0.7427, allocations: 31.97 kB / 428.3 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.7431, allocations: 43.89 kB / 428.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.7433, allocations: 20.05 kB / 428.3 MB, free: 9.652 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001757/0.745, allocations: 0.5302 MB / 428.9 MB, free: 9.129 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.489e-06/0.7451, allocations: 0 / 428.9 MB, free: 9.129 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003863/0.749, allocations: 0.5349 MB / 429.4 MB, free: 8.594 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002604/0.7517, allocations: 437.1 kB / 429.8 MB, free: 8.164 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005414/0.7571, allocations: 1.158 MB / 431 MB, free: 6.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.7572, allocations: 0 / 431 MB, free: 6.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.7588, allocations: 352.1 kB / 431.3 MB, free: 6.625 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00385/0.7627, allocations: 307.8 kB / 431.6 MB, free: 6.328 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005997/0.7688, allocations: 1.748 MB / 433.4 MB, free: 4.543 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.7701, allocations: 0.9776 MB / 434.3 MB, free: 3.539 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005461/0.7707, allocations: 67.42 kB / 434.4 MB, free: 3.477 MB / 314.7 MB Notification: Performance of SimCode: time 1.964e-06/0.7708, allocations: 0 / 434.4 MB, free: 3.477 MB / 314.7 MB Notification: Performance of Templates: time 0.08209/0.8529, allocations: 17.2 MB / 451.6 MB, free: 2.258 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches