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.001139/0.001139, allocations: 173.5 kB / 16.72 MB, free: 5.082 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.541/1.541, allocations: 205.4 MB / 222.9 MB, free: 8.949 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.0008337/0.0008339, allocations: 96.89 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003273/0.0003274, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2235, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01265/0.2362, allocations: 15.31 MB / 390.4 MB, free: 33.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008091/0.2443, allocations: 6.553 MB / 396.9 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.2456, allocations: 27.75 kB / 397 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009739/0.2466, allocations: 282.2 kB / 397.2 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002976/0.2496, allocations: 1.069 MB / 398.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003814/0.2534, allocations: 1.406 MB / 399.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00275/0.2562, allocations: 2.616 MB / 402.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009138/0.2572, allocations: 0.5149 MB / 402.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001275/0.2584, allocations: 0.6967 MB / 403.5 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2595, allocations: 0.7552 MB / 404.3 MB, free: 19.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.2597, allocations: 43.94 kB / 404.3 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002062/0.2617, allocations: 1.139 MB / 405.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003184/0.2621, allocations: 283.1 kB / 405.8 MB, free: 17.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005018/0.2626, allocations: 419.9 kB / 406.2 MB, free: 17.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001925/0.2645, allocations: 1.309 MB / 407.5 MB, free: 16.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.2645, allocations: 0 / 407.5 MB, free: 16.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2646, allocations: 0 / 407.5 MB, free: 16.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.2646, allocations: 0 / 407.5 MB, free: 16.23 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.002319/0.2669, allocations: 1.107 MB / 408.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.2669, allocations: 12.03 kB / 408.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/0.2673, allocations: 91.98 kB / 408.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007876/0.2681, allocations: 0.5969 MB / 409.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.483e-05/0.2681, allocations: 112.7 kB / 409.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.2682, allocations: 51.98 kB / 409.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.2695, allocations: 0.8923 MB / 410.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.2695, allocations: 0 / 410.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.2696, allocations: 27.98 kB / 410.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-05/0.2696, allocations: 49.28 kB / 410.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.2708, allocations: 0.8404 MB / 411.3 MB, free: 12.32 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.004806/0.2756, allocations: 3.47 MB / 414.7 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008286/0.2764, allocations: 0.6529 MB / 415.4 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004526/0.2769, allocations: 370.3 kB / 415.7 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002351/0.2793, allocations: 2.058 MB / 417.8 MB, free: 5.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.2793, allocations: 43.11 kB / 417.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.495e-06/0.2793, allocations: 0 / 417.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.006121/0.2855, allocations: 2.854 MB / 420.7 MB, free: 2.414 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.2855, allocations: 89.55 kB / 420.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006612/0.2862, allocations: 0.676 MB / 421.5 MB, free: 1.625 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.905e-05/0.2863, allocations: 37.7 kB / 421.5 MB, free: 1.582 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.2864, allocations: 336.4 kB / 421.8 MB, free: 1.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.2866, allocations: 232.7 kB / 422.1 MB, free: 1.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.2866, allocations: 12 kB / 422.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.959e-05/0.2867, allocations: 386.8 kB / 422.4 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/0.2872, allocations: 353.8 kB / 422.8 MB, free: 284 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.2879, allocations: 0.5075 MB / 423.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.2891, allocations: 0.8521 MB / 424.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2892, allocations: 3.938 kB / 424.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001998/0.2912, allocations: 1.145 MB / 425.3 MB, free: 13.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/0.2913, allocations: 219.2 kB / 425.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.2913, allocations: 7.938 kB / 425.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.2926, allocations: 436.5 kB / 425.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.2933, allocations: 167.8 kB / 426.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.2945, allocations: 1.013 MB / 427.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006145/0.2952, allocations: 55.86 kB / 427.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.01e-05/0.2953, allocations: 39.92 kB / 427.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.2953, allocations: 4 kB / 427.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001773/0.297, allocations: 0.9962 MB / 428.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2971, allocations: 4 kB / 428.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006782/0.2978, allocations: 312.8 kB / 428.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/0.2984, allocations: 163.8 kB / 428.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009902/0.2994, allocations: 0.8996 MB / 429.6 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000627/0.3, allocations: 55.86 kB / 429.6 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.427e-05/0.3001, allocations: 31.98 kB / 429.7 MB, free: 9.133 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.0005178/0.3006, allocations: 324.9 kB / 430 MB, free: 8.805 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.3008, allocations: 75.06 kB / 430.1 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/0.303, allocations: 1.095 MB / 431.2 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.303, allocations: 4.094 kB / 431.2 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.303, allocations: 11.92 kB / 431.2 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.303, allocations: 3.984 kB / 431.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/0.3063, allocations: 2.005 MB / 433.2 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3064, allocations: 0 / 433.2 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000571/0.3069, allocations: 115.9 kB / 433.3 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.3082, allocations: 455.8 kB / 433.7 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.363e-05/0.3083, allocations: 16 kB / 433.8 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/0.3096, allocations: 1.025 MB / 434.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3096, allocations: 0 / 434.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.3121, allocations: 1.595 MB / 436.4 MB, free: 2.297 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.3126, allocations: 256 kB / 436.6 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.3128, allocations: 12 kB / 436.6 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/0.3134, allocations: 47.97 kB / 436.7 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.3136, allocations: 56.75 kB / 436.7 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.709e-05/0.3137, allocations: 31.98 kB / 436.8 MB, free: 1.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007177/0.3144, allocations: 479 kB / 437.2 MB, free: 1.418 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3144, allocations: 4 kB / 437.2 MB, free: 1.414 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001741/0.3161, allocations: 0.5817 MB / 437.8 MB, free: 0.832 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.0014/0.3176, allocations: 479.2 kB / 438.3 MB, free: 360 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.3207, allocations: 1.384 MB / 439.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.3208, allocations: 0 / 439.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009413/0.3217, allocations: 459.5 kB / 440.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.3238, allocations: 369.2 kB / 440.5 MB, free: 14.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/0.3277, allocations: 2.064 MB / 442.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006906/0.3285, allocations: 0.9913 MB / 443.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/0.3288, allocations: 83.34 kB / 443.6 MB, free: 10.97 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.3289, allocations: 0 / 443.6 MB, free: 10.97 MB / 330.7 MB Notification: Performance of Templates: time 0.02982/0.3587, allocations: 18.95 MB / 462.6 MB, free: 8.012 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