Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009259/0.0009259, allocations: 174.2 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.314/1.314, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.000729/0.000729, allocations: 102.3 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002986, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2173, allocations: 47.58 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02243/0.2398, allocations: 28 MB / 403.1 MB, free: 20.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01493/0.2548, allocations: 14.31 MB / 417.4 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002122/0.257, allocations: 59.5 kB / 417.5 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001523/0.2585, allocations: 0.493 MB / 417.9 MB, free: 5.766 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005563/0.2641, allocations: 2.259 MB / 420.2 MB, free: 3.496 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007162/0.2713, allocations: 2.936 MB / 423.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00661/0.2779, allocations: 5.058 MB / 428.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002082/0.28, allocations: 1.002 MB / 429.2 MB, free: 10.47 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002937/0.283, allocations: 1.362 MB / 430.6 MB, free: 9.105 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00261/0.2856, allocations: 1.581 MB / 432.1 MB, free: 7.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.2859, allocations: 88 kB / 432.2 MB, free: 7.434 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004623/0.2905, allocations: 2.254 MB / 434.5 MB, free: 5.176 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007848/0.2914, allocations: 0.5258 MB / 435 MB, free: 4.648 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.2925, allocations: 0.7912 MB / 435.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003815/0.2963, allocations: 2.643 MB / 438.4 MB, free: 1.199 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2964, allocations: 4 kB / 438.4 MB, free: 1.195 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2964, allocations: 0 / 438.4 MB, free: 1.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.2964, allocations: 0 / 438.4 MB, free: 1.195 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004558/0.301, allocations: 1.892 MB / 440.3 MB, free: 15.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.301, allocations: 12.03 kB / 440.4 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004737/0.3015, allocations: 178.1 kB / 440.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/0.303, allocations: 1.003 MB / 441.5 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.3032, allocations: 175.1 kB / 441.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.3034, allocations: 103.9 kB / 441.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.3062, allocations: 1.745 MB / 443.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.731e-05/0.3062, allocations: 0 / 443.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.3063, allocations: 47.91 kB / 443.6 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001573/0.3065, allocations: 113.9 kB / 443.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002817/0.3093, allocations: 1.772 MB / 445.5 MB, free: 9.98 MB / 330.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.01087/0.3202, allocations: 6.738 MB / 452.2 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.322, allocations: 1.234 MB / 453.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.323, allocations: 0.7633 MB / 454.2 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005383/0.3284, allocations: 4.282 MB / 458.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.3285, allocations: 51.55 kB / 458.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007656/0.3292, allocations: 206.7 kB / 458.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.639e-06/0.3293, allocations: 0 / 458.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01773/0.347, allocations: 5.746 MB / 464.5 MB, free: 6.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.185e-05/0.3471, allocations: 145.5 kB / 464.6 MB, free: 5.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/0.349, allocations: 1.246 MB / 465.9 MB, free: 4.703 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.3491, allocations: 49.7 kB / 465.9 MB, free: 4.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004737/0.3496, allocations: 0.6168 MB / 466.5 MB, free: 4.023 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003363/0.35, allocations: 390.4 kB / 466.9 MB, free: 3.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.3501, allocations: 28 kB / 467 MB, free: 3.609 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3502, allocations: 361.9 kB / 467.3 MB, free: 3.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.3514, allocations: 0.691 MB / 468 MB, free: 2.559 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.3528, allocations: 1.048 MB / 469 MB, free: 1.371 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/0.3553, allocations: 1.712 MB / 470.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.3553, allocations: 0 / 470.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00385/0.3591, allocations: 2.245 MB / 473 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002577/0.3594, allocations: 379.5 kB / 473.4 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/0.3595, allocations: 12 kB / 473.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00674/0.3662, allocations: 1.27 MB / 474.7 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/0.3676, allocations: 299.5 kB / 474.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.3702, allocations: 1.595 MB / 476.5 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.3717, allocations: 87.86 kB / 476.6 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/0.372, allocations: 71.97 kB / 476.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.372, allocations: 4 kB / 476.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003614/0.3756, allocations: 2.023 MB / 478.7 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-05/0.3757, allocations: 12.16 kB / 478.7 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005989/0.3817, allocations: 1.117 MB / 479.9 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.3831, allocations: 307.5 kB / 480.2 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/0.3852, allocations: 1.454 MB / 481.6 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.3867, allocations: 83.81 kB / 481.7 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002522/0.387, allocations: 75.89 kB / 481.8 MB, free: 4.305 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0009071/0.3879, allocations: 460.6 kB / 482.2 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003562/0.3883, allocations: 146.2 kB / 482.4 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004133/0.3924, allocations: 2.071 MB / 484.4 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.3924, allocations: 19.88 kB / 484.4 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.3925, allocations: 4 kB / 484.4 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.3925, allocations: 11.95 kB / 484.5 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005824/0.3983, allocations: 3.567 MB / 488 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3983, allocations: 0 / 488 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009214/0.3993, allocations: 199.7 kB / 488.2 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003531/0.4028, allocations: 0.9885 MB / 489.2 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/0.403, allocations: 35.98 kB / 489.2 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.4052, allocations: 1.607 MB / 490.9 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.4052, allocations: 3.938 kB / 490.9 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004603/0.4098, allocations: 2.899 MB / 493.8 MB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008614/0.4107, allocations: 407.1 kB / 494.2 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003092/0.411, allocations: 32 kB / 494.2 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4121, allocations: 83.84 kB / 494.3 MB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.4124, allocations: 101.1 kB / 494.4 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.4125, allocations: 51.97 kB / 494.4 MB, free: 7.492 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001233/0.4137, allocations: 0.8324 MB / 495.2 MB, free: 6.656 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4138, allocations: 0 / 495.2 MB, free: 6.656 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003025/0.4168, allocations: 1.163 MB / 496.4 MB, free: 5.492 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002045/0.4188, allocations: 0.8564 MB / 497.3 MB, free: 4.629 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005926/0.4248, allocations: 2.777 MB / 0.4883 GB, free: 1.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.4248, allocations: 0.6875 kB / 0.4883 GB, free: 1.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.4266, allocations: 0.8634 MB / 0.4892 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002951/0.4296, allocations: 0.6042 MB / 0.4898 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.153/0.5826, allocations: 3.637 MB / 0.4933 GB, free: 111.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006592/0.5833, allocations: 1.29 MB / 0.4946 GB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005423/0.5838, allocations: 142.6 kB / 0.4947 GB, free: 110.3 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5838, allocations: 4 kB / 0.4947 GB, free: 110.3 MB / 378.7 MB Notification: Performance of Templates: time 0.04531/0.6292, allocations: 35.51 MB / 0.5294 GB, free: 82.92 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches