Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008257/0.0008258, allocations: 178.8 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 223.3 MB / 241 MB, free: 10.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008076/0.0008076, allocations: 87.64 kB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.0002549, allocations: 7.938 kB / 351.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1967, allocations: 50.41 MB / 402.2 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009995/0.2067, allocations: 15.25 MB / 417.4 MB, free: 17.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006471/0.2132, allocations: 6.591 MB / 424 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005575/0.2138, allocations: 31.75 kB / 424.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006135/0.2145, allocations: 286.2 kB / 424.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001647/0.2161, allocations: 1.022 MB / 425.4 MB, free: 9.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00242/0.2185, allocations: 1.384 MB / 426.8 MB, free: 7.945 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.2201, allocations: 2.612 MB / 429.4 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004932/0.2206, allocations: 0.4977 MB / 429.9 MB, free: 4.812 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000656/0.2213, allocations: 0.7123 MB / 430.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006695/0.222, allocations: 0.7629 MB / 431.3 MB, free: 3.332 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.832e-05/0.2221, allocations: 40 kB / 431.4 MB, free: 3.293 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001388/0.2235, allocations: 1.057 MB / 432.4 MB, free: 2.234 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.2237, allocations: 267.2 kB / 432.7 MB, free: 1.973 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.2238, allocations: 177.3 kB / 432.9 MB, free: 1.793 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009536/0.2248, allocations: 1.284 MB / 434.2 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2248, allocations: 0 / 434.2 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2248, allocations: 0 / 434.2 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.2248, allocations: 0 / 434.2 MB, free: 0.5078 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.002127/0.2269, allocations: 1.11 MB / 435.3 MB, free: 15.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.227, allocations: 12.03 kB / 435.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.2273, allocations: 95.05 kB / 435.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008307/0.2281, allocations: 0.5701 MB / 435.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.2282, allocations: 112.6 kB / 436 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.13e-05/0.2283, allocations: 55.98 kB / 436.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.2297, allocations: 0.8962 MB / 437 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.2297, allocations: 0 / 437 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.251e-05/0.2298, allocations: 19.98 kB / 437 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.387e-05/0.2299, allocations: 53.28 kB / 437.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.2312, allocations: 0.8365 MB / 437.9 MB, free: 12.62 MB / 314.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.005241/0.2364, allocations: 3.478 MB / 441.4 MB, free: 8.953 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009587/0.2374, allocations: 0.6647 MB / 442 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000513/0.2379, allocations: 362.3 kB / 442.4 MB, free: 7.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002714/0.2407, allocations: 2.047 MB / 444.4 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.2407, allocations: 47.06 kB / 444.5 MB, free: 5.625 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.654e-06/0.2407, allocations: 0 / 444.5 MB, free: 5.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006622/0.2473, allocations: 2.848 MB / 447.3 MB, free: 2.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.2474, allocations: 89.67 kB / 447.4 MB, free: 2.605 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007673/0.2482, allocations: 0.6682 MB / 448.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.02e-05/0.2483, allocations: 41.7 kB / 448.1 MB, free: 1.883 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/0.2485, allocations: 336.4 kB / 448.5 MB, free: 1.551 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.2487, allocations: 224.8 kB / 448.7 MB, free: 1.328 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-05/0.2487, allocations: 16 kB / 448.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.2489, allocations: 394.7 kB / 449.1 MB, free: 0.918 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005558/0.2495, allocations: 353.8 kB / 449.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000658/0.2501, allocations: 0.5113 MB / 449.9 MB, free: 0 / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.2508, allocations: 403.1 kB / 450.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2508, allocations: 7.938 kB / 450.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001842/0.2527, allocations: 1.141 MB / 451.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.2528, allocations: 219.6 kB / 451.7 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2528, allocations: 11.94 kB / 451.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.254, allocations: 444.4 kB / 452.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006472/0.2547, allocations: 159.8 kB / 452.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.2558, allocations: 1.018 MB / 453.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/0.2564, allocations: 47.92 kB / 453.4 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.277e-05/0.2565, allocations: 35.98 kB / 453.4 MB, free: 12.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/0.2565, allocations: 4 kB / 453.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00165/0.2582, allocations: 1.004 MB / 454.4 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2582, allocations: 4 kB / 454.4 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006735/0.2589, allocations: 313.1 kB / 454.7 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006404/0.2595, allocations: 167.8 kB / 454.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009393/0.2605, allocations: 0.9035 MB / 455.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.261, allocations: 55.8 kB / 455.8 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.2611, allocations: 31.98 kB / 455.9 MB, free: 9.934 MB / 330.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.0004113/0.2615, allocations: 332.8 kB / 456.2 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.2616, allocations: 79.06 kB / 456.3 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.2635, allocations: 1.084 MB / 457.4 MB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.2635, allocations: 11.98 kB / 457.4 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2636, allocations: 0 / 457.4 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2636, allocations: 0 / 457.4 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002895/0.2665, allocations: 2.005 MB / 459.4 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2665, allocations: 0 / 459.4 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005762/0.2671, allocations: 123.8 kB / 459.5 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.2683, allocations: 452.5 kB / 459.9 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.336e-05/0.2683, allocations: 19.98 kB / 460 MB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.2695, allocations: 1.024 MB / 461 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2695, allocations: 0 / 461 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.2717, allocations: 1.595 MB / 462.6 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/0.2721, allocations: 260 kB / 462.8 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.2722, allocations: 12 kB / 462.8 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00056/0.2728, allocations: 51.84 kB / 462.9 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.2729, allocations: 56.56 kB / 462.9 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-05/0.273, allocations: 35.98 kB / 463 MB, free: 2.664 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005453/0.2736, allocations: 475 kB / 463.4 MB, free: 2.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2736, allocations: 0 / 463.4 MB, free: 2.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001441/0.275, allocations: 0.574 MB / 464 MB, free: 1.629 MB / 330.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.0009034/0.2759, allocations: 471.1 kB / 464.5 MB, free: 1.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.2786, allocations: 1.385 MB / 465.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2786, allocations: 0 / 465.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009049/0.2795, allocations: 459.5 kB / 466.3 MB, free: 15.33 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.2812, allocations: 368.7 kB / 466.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.2846, allocations: 2.062 MB / 468.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005781/0.2852, allocations: 0.9953 MB / 469.7 MB, free: 11.87 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/0.2855, allocations: 83.34 kB / 469.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2855, allocations: 4 kB / 469.8 MB, free: 11.78 MB / 346.7 MB Notification: Performance of Templates: time 0.0248/0.3103, allocations: 18.93 MB / 488.7 MB, free: 8.93 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches