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.0013/0.0013, allocations: 178.8 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.268/1.268, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007264/0.0007263, allocations: 86.3 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002952, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2002, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01149/0.2118, allocations: 15.27 MB / 389.8 MB, free: 33.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006892/0.2187, allocations: 6.543 MB / 396.4 MB, free: 26.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008082/0.2195, allocations: 27.75 kB / 396.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007124/0.2203, allocations: 282.2 kB / 396.7 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002015/0.2223, allocations: 1.018 MB / 397.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002834/0.2251, allocations: 1.391 MB / 399.1 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.2269, allocations: 2.608 MB / 401.7 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005257/0.2275, allocations: 0.4899 MB / 402.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007051/0.2282, allocations: 0.72 MB / 402.9 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006907/0.2289, allocations: 0.7707 MB / 403.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.794e-05/0.229, allocations: 44 kB / 403.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001405/0.2304, allocations: 1.045 MB / 404.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.2306, allocations: 271.1 kB / 405 MB, free: 18.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.2307, allocations: 173.3 kB / 405.2 MB, free: 18.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.2317, allocations: 1.283 MB / 406.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2318, allocations: 0 / 406.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2318, allocations: 0 / 406.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.2318, allocations: 0 / 406.5 MB, free: 16.84 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001974/0.2338, allocations: 1.11 MB / 407.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.2338, allocations: 12.03 kB / 407.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.2341, allocations: 95 kB / 407.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006943/0.2348, allocations: 0.5779 MB / 408.3 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.342e-05/0.2349, allocations: 104.7 kB / 408.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-05/0.2349, allocations: 51.98 kB / 408.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2361, allocations: 0.8962 MB / 409.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.2361, allocations: 7.938 kB / 409.3 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.24e-05/0.2362, allocations: 23.98 kB / 409.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.297e-05/0.2363, allocations: 53.27 kB / 409.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.2374, allocations: 0.8365 MB / 410.2 MB, free: 12.95 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.0043/0.2417, allocations: 3.47 MB / 413.7 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007809/0.2425, allocations: 0.6607 MB / 414.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.2429, allocations: 366.3 kB / 414.7 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002093/0.245, allocations: 2.055 MB / 416.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.245, allocations: 43.06 kB / 416.8 MB, free: 5.957 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 1.773e-06/0.245, allocations: 0 / 416.8 MB, free: 5.957 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.005858/0.2509, allocations: 2.856 MB / 419.7 MB, free: 3.031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.251, allocations: 85.67 kB / 419.7 MB, free: 2.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006111/0.2516, allocations: 0.6759 MB / 420.4 MB, free: 2.246 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.2516, allocations: 37.7 kB / 420.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.2518, allocations: 336.4 kB / 420.8 MB, free: 1.871 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.2519, allocations: 220.8 kB / 421 MB, free: 1.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.066e-05/0.252, allocations: 19.94 kB / 421 MB, free: 1.633 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.23e-05/0.2521, allocations: 390.8 kB / 421.4 MB, free: 1.242 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004714/0.2525, allocations: 357.8 kB / 421.8 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000515/0.2531, allocations: 0.5112 MB / 422.3 MB, free: 328 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005565/0.2536, allocations: 411 kB / 422.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2536, allocations: 4 kB / 422.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001839/0.2555, allocations: 1.141 MB / 423.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.2556, allocations: 215.6 kB / 424 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2556, allocations: 8 kB / 424 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.2568, allocations: 446.3 kB / 424.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006474/0.2575, allocations: 163.7 kB / 424.6 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.2586, allocations: 1.021 MB / 425.6 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005748/0.2592, allocations: 51.86 kB / 425.7 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.961e-05/0.2593, allocations: 35.98 kB / 425.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-06/0.2593, allocations: 4 kB / 425.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001634/0.2609, allocations: 0.9997 MB / 426.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2609, allocations: 4 kB / 426.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006613/0.2616, allocations: 309.2 kB / 427 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.2623, allocations: 171.7 kB / 427.2 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009251/0.2632, allocations: 0.8996 MB / 428.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/0.2637, allocations: 47.92 kB / 428.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.724e-05/0.2638, allocations: 31.98 kB / 428.2 MB, free: 10.26 MB / 314.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.0003844/0.2642, allocations: 336.8 kB / 428.5 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.2643, allocations: 75.06 kB / 428.6 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/0.2662, allocations: 1.091 MB / 429.7 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.2662, allocations: 4 kB / 429.7 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.2662, allocations: 4 kB / 429.7 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.2662, allocations: 7.922 kB / 429.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/0.269, allocations: 1.994 MB / 431.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.269, allocations: 0 / 431.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/0.2696, allocations: 119.9 kB / 431.8 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.2707, allocations: 456.5 kB / 432.3 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/0.2708, allocations: 20 kB / 432.3 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.2719, allocations: 1.028 MB / 433.3 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2719, allocations: 0 / 433.3 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.2741, allocations: 1.595 MB / 434.9 MB, free: 3.422 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003708/0.2745, allocations: 252 kB / 435.1 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.2746, allocations: 19.95 kB / 435.2 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005922/0.2752, allocations: 43.88 kB / 435.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.2754, allocations: 60.56 kB / 435.3 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.528e-05/0.2754, allocations: 27.98 kB / 435.3 MB, free: 3.008 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005852/0.276, allocations: 475 kB / 435.8 MB, free: 2.547 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.276, allocations: 0 / 435.8 MB, free: 2.547 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001465/0.2775, allocations: 0.5779 MB / 436.3 MB, free: 1.969 MB / 314.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.0008729/0.2784, allocations: 470.5 kB / 436.8 MB, free: 1.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.2811, allocations: 1.385 MB / 438.2 MB, free: 116 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2811, allocations: 0 / 438.2 MB, free: 116 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009104/0.282, allocations: 463.6 kB / 438.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.2836, allocations: 369.9 kB / 439 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.2868, allocations: 2.068 MB / 441.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.2873, allocations: 0.9874 MB / 442 MB, free: 12.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.2875, allocations: 79.41 kB / 442.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2875, allocations: 4 kB / 442.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of Templates: time 0.02301/0.3105, allocations: 18.92 MB / 461 MB, free: 9.172 MB / 346.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/jenkins/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