Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006776/0.0006776, allocations: 96.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008408/0.0008409, allocations: 207 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 227.8 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001979/0.0001979, allocations: 11.94 kB / 307.8 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08122/0.08143, allocations: 51.51 MB / 359.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1754/0.2568, allocations: 29.69 MB / 389 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01834/0.2752, allocations: 15.53 MB / 404.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001673/0.2769, allocations: 62.91 kB / 404.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.2782, allocations: 0.5155 MB / 405.1 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005019/0.2832, allocations: 2.162 MB / 407.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008119/0.2913, allocations: 3.151 MB / 410.5 MB, free: 6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006188/0.2975, allocations: 6.178 MB / 416.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001347/0.2989, allocations: 1.016 MB / 417.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001901/0.3008, allocations: 1.343 MB / 419 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/0.3027, allocations: 1.651 MB / 420.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001789/0.3029, allocations: 88 kB / 420.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004518/0.3074, allocations: 2.375 MB / 423.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00063/0.3081, allocations: 0.5491 MB / 423.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008943/0.309, allocations: 0.822 MB / 424.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004928/0.3139, allocations: 3.611 MB / 428.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3139, allocations: 4 kB / 428.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3139, allocations: 4 kB / 428.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.314, allocations: 0 / 428.1 MB, free: 6.863 MB / 334.1 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.004052/0.318, allocations: 1.889 MB / 430 MB, free: 4.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.3181, allocations: 12.03 kB / 430 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000224/0.3183, allocations: 172.4 kB / 430.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004261/0.3187, allocations: 174.1 kB / 430.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.3202, allocations: 1.007 MB / 431.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.3203, allocations: 175 kB / 431.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.3205, allocations: 107.9 kB / 431.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.323, allocations: 1.749 MB / 433.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.3231, allocations: 4 kB / 433.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.3232, allocations: 39.97 kB / 433.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/0.3234, allocations: 117.9 kB / 433.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/0.326, allocations: 1.784 MB / 435.3 MB, free: 15.46 MB / 350.1 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.01002/0.336, allocations: 6.739 MB / 442.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.3377, allocations: 1.238 MB / 443.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.3388, allocations: 0.765 MB / 444.1 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005038/0.3439, allocations: 4.287 MB / 448.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3439, allocations: 47.56 kB / 448.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006313/0.3446, allocations: 210.6 kB / 448.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.475e-06/0.3446, allocations: 0 / 448.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01663/0.3612, allocations: 5.756 MB / 454.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.3613, allocations: 145.5 kB / 454.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.3628, allocations: 1.253 MB / 455.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.517e-05/0.3629, allocations: 45.7 kB / 455.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.3633, allocations: 0.613 MB / 456.4 MB, free: 9.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.3637, allocations: 386.4 kB / 456.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.3638, allocations: 121.6 kB / 456.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.329e-05/0.3639, allocations: 305.1 kB / 457.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.365, allocations: 0.7105 MB / 457.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.3663, allocations: 1.064 MB / 459 MB, free: 6.762 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002342/0.3687, allocations: 1.747 MB / 460.7 MB, free: 4.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3687, allocations: 4 kB / 460.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003493/0.3722, allocations: 2.292 MB / 463 MB, free: 2.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002402/0.3725, allocations: 379.4 kB / 463.4 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.3725, allocations: 12 kB / 463.4 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006546/0.379, allocations: 1.286 MB / 464.7 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.3801, allocations: 295.5 kB / 465 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.3823, allocations: 1.599 MB / 466.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3835, allocations: 99.67 kB / 466.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.3836, allocations: 71.95 kB / 466.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.475e-06/0.3836, allocations: 4 kB / 466.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003163/0.3868, allocations: 2.031 MB / 468.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.3868, allocations: 8.125 kB / 468.8 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005815/0.3926, allocations: 1.123 MB / 469.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.3937, allocations: 307.5 kB / 470.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.3957, allocations: 1.473 MB / 471.7 MB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.3967, allocations: 83.89 kB / 471.8 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.3969, allocations: 67.97 kB / 471.8 MB, free: 9.559 MB / 382.1 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 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0006731/0.3975, allocations: 468.5 kB / 472.3 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.3978, allocations: 146.2 kB / 472.4 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003654/0.4014, allocations: 2.095 MB / 474.5 MB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.4014, allocations: 16 kB / 474.5 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4015, allocations: 0 / 474.5 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.4015, allocations: 11.91 kB / 474.5 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004955/0.4064, allocations: 3.575 MB / 478.1 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4065, allocations: 0 / 478.1 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008238/0.4073, allocations: 191.8 kB / 478.3 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003496/0.4108, allocations: 0.9886 MB / 479.3 MB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.954e-05/0.4109, allocations: 35.97 kB / 479.3 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001968/0.4129, allocations: 1.619 MB / 481 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4129, allocations: 0 / 481 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004008/0.4169, allocations: 2.907 MB / 483.9 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/0.4175, allocations: 411 kB / 484.3 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.4177, allocations: 20 kB / 484.3 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009676/0.4187, allocations: 87.88 kB / 484.4 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.4189, allocations: 97.17 kB / 484.5 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.419, allocations: 52.09 kB / 484.5 MB, free: 12.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001031/0.42, allocations: 0.8479 MB / 485.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4201, allocations: 0 / 485.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00249/0.4225, allocations: 1.163 MB / 486.5 MB, free: 10.7 MB / 398.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005814/0.4284, allocations: 4.23 MB / 490.8 MB, free: 6.445 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005463/0.4338, allocations: 2.827 MB / 493.6 MB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4339, allocations: 0 / 493.6 MB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.4355, allocations: 0.8766 MB / 494.5 MB, free: 2.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.4384, allocations: 0.6243 MB / 495.1 MB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/0.4601, allocations: 15.72 MB / 0.4988 GB, free: 1.684 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007751/0.4609, allocations: 1.292 MB / 0.5001 GB, free: 372 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001922/0.4628, allocations: 0.5862 MB / 0.5007 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007021/0.4635, allocations: 0.5383 MB / 0.5012 GB, free: 15.23 MB / 430.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4635, allocations: 3.938 kB / 0.5012 GB, free: 15.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2123/0.6759, allocations: 54.83 MB / 0.5547 GB, free: 142.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/0.676, allocations: 219.5 kB / 0.5549 GB, free: 142.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.077/3.753, allocations: 0 / 0.5549 GB, free: 142.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches