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: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000868/0.000868, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.209/1.209, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0008219/0.0008218, allocations: 94.41 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003365/0.0003366, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1993, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01825/0.2176, allocations: 28 MB / 403.2 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.2321, allocations: 14.3 MB / 417.5 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001764/0.2339, allocations: 63.44 kB / 417.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.2353, allocations: 0.5008 MB / 418 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005167/0.2405, allocations: 2.251 MB / 420.3 MB, free: 3.477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006375/0.2469, allocations: 2.943 MB / 423.2 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005733/0.2526, allocations: 5.055 MB / 428.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001754/0.2544, allocations: 1.009 MB / 429.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002811/0.2572, allocations: 1.359 MB / 430.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002957/0.2602, allocations: 1.588 MB / 432.2 MB, free: 7.484 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003478/0.2606, allocations: 88 kB / 432.3 MB, free: 7.398 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004422/0.265, allocations: 2.242 MB / 434.6 MB, free: 5.152 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007465/0.2658, allocations: 0.5335 MB / 435.1 MB, free: 4.617 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.2669, allocations: 0.7873 MB / 435.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004052/0.2709, allocations: 2.647 MB / 438.5 MB, free: 1.168 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.271, allocations: 0 / 438.5 MB, free: 1.168 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.271, allocations: 0 / 438.5 MB, free: 1.168 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.271, allocations: 0 / 438.5 MB, free: 1.168 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.0045/0.2755, allocations: 1.893 MB / 440.4 MB, free: 15.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.2756, allocations: 16.03 kB / 440.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002414/0.2758, allocations: 164.5 kB / 440.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004472/0.2763, allocations: 174.1 kB / 440.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.2778, allocations: 1.007 MB / 441.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.2779, allocations: 175.1 kB / 442 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.2781, allocations: 95.97 kB / 442.1 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.2808, allocations: 1.745 MB / 443.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.2808, allocations: 3.938 kB / 443.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.281, allocations: 43.97 kB / 443.8 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/0.2811, allocations: 109.9 kB / 444 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002701/0.2838, allocations: 1.776 MB / 445.7 MB, free: 9.789 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.01097/0.2948, allocations: 6.746 MB / 452.5 MB, free: 2.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001751/0.2966, allocations: 1.226 MB / 453.7 MB, free: 1.473 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.2977, allocations: 0.769 MB / 454.5 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005805/0.3035, allocations: 4.283 MB / 458.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.3036, allocations: 47.56 kB / 458.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008557/0.3044, allocations: 206.6 kB / 459 MB, free: 11.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.799e-06/0.3045, allocations: 0 / 459 MB, free: 11.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01787/0.3223, allocations: 5.758 MB / 464.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.625e-05/0.3225, allocations: 145.5 kB / 464.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.3241, allocations: 1.238 MB / 466.1 MB, free: 4.508 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.3243, allocations: 45.7 kB / 466.2 MB, free: 4.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004786/0.3248, allocations: 0.6207 MB / 466.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003426/0.3251, allocations: 386.4 kB / 467.2 MB, free: 3.445 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.049e-05/0.3252, allocations: 32 kB / 467.2 MB, free: 3.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3254, allocations: 361.9 kB / 467.6 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.3265, allocations: 0.6949 MB / 468.3 MB, free: 2.359 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.3278, allocations: 1.044 MB / 469.3 MB, free: 1.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.3303, allocations: 1.712 MB / 471 MB, free: 15.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.3303, allocations: 4 kB / 471 MB, free: 15.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003696/0.334, allocations: 2.238 MB / 473.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000231/0.3343, allocations: 379.1 kB / 473.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.3343, allocations: 12 kB / 473.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006675/0.341, allocations: 1.27 MB / 474.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.3423, allocations: 299.5 kB / 475.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.3448, allocations: 1.602 MB / 476.8 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.3462, allocations: 83.86 kB / 476.9 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.3464, allocations: 71.95 kB / 477 MB, free: 9.207 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.3464, allocations: 4 kB / 477 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003376/0.3498, allocations: 2.027 MB / 479 MB, free: 7.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3498, allocations: 8 kB / 479 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006154/0.356, allocations: 1.109 MB / 480.1 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.3574, allocations: 307.5 kB / 480.4 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002097/0.3595, allocations: 1.458 MB / 481.9 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.3609, allocations: 87.73 kB / 481.9 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.3611, allocations: 67.97 kB / 482 MB, free: 4.113 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.0008369/0.3619, allocations: 472.5 kB / 482.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/0.3622, allocations: 146.2 kB / 482.6 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003962/0.3662, allocations: 2.074 MB / 484.7 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.3662, allocations: 15.94 kB / 484.7 MB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3662, allocations: 4 kB / 484.7 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.3662, allocations: 7.969 kB / 484.7 MB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005465/0.3717, allocations: 3.571 MB / 488.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3717, allocations: 4 kB / 488.3 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009089/0.3727, allocations: 195.7 kB / 488.5 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003539/0.3762, allocations: 0.9883 MB / 489.5 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.3764, allocations: 39.97 kB / 489.5 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.3785, allocations: 1.611 MB / 491.1 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3786, allocations: 3.938 kB / 491.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/0.3831, allocations: 2.888 MB / 494 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009209/0.384, allocations: 419 kB / 494.4 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002226/0.3843, allocations: 24 kB / 494.4 MB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000982/0.3853, allocations: 83.97 kB / 494.5 MB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.3856, allocations: 109.1 kB / 494.6 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.3857, allocations: 52.16 kB / 494.7 MB, free: 7.281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001086/0.3868, allocations: 0.8324 MB / 495.5 MB, free: 6.445 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3868, allocations: 3.938 kB / 495.5 MB, free: 6.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002622/0.3894, allocations: 1.163 MB / 496.7 MB, free: 5.277 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.006231/0.3957, allocations: 4.191 MB / 0.4891 GB, free: 1.055 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1367/0.5324, allocations: 2.767 MB / 0.4918 GB, free: 113.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.5324, allocations: 0 / 0.4918 GB, free: 113.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.534, allocations: 0.8687 MB / 0.4927 GB, free: 112.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/0.5368, allocations: 0.6201 MB / 0.4933 GB, free: 112.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/0.5532, allocations: 10.76 MB / 0.5038 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.5538, allocations: 1.287 MB / 0.5051 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007632/0.5546, allocations: 0.554 MB / 0.5056 GB, free: 105.6 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5546, allocations: 0 / 0.5056 GB, free: 105.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.354/5.909, allocations: 37.44 MB / 0.5422 GB, free: 69.96 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > 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/jenkins1/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