Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009339/0.000934, allocations: 195.5 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007424/0.0007422, allocations: 97.88 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.0002101, allocations: 4 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2041, allocations: 51.28 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01724/0.2214, allocations: 28.05 MB / 436.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0178/0.2393, allocations: 14.33 MB / 450.5 MB, free: 1.223 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.241, allocations: 59.5 kB / 450.6 MB, free: 1.164 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001531/0.2425, allocations: 0.493 MB / 451 MB, free: 0.668 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00581/0.2483, allocations: 2.274 MB / 453.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007269/0.2556, allocations: 2.922 MB / 456.2 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005957/0.2616, allocations: 5.067 MB / 461.3 MB, free: 6.387 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.2635, allocations: 0.9989 MB / 462.3 MB, free: 5.355 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.2661, allocations: 1.366 MB / 463.7 MB, free: 3.984 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002258/0.2684, allocations: 1.577 MB / 465.3 MB, free: 2.402 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000279/0.2687, allocations: 88 kB / 465.3 MB, free: 2.316 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004135/0.2728, allocations: 2.273 MB / 467.6 MB, free: 40 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006894/0.2735, allocations: 0.5296 MB / 468.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009796/0.2745, allocations: 0.7834 MB / 468.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003474/0.278, allocations: 2.654 MB / 471.6 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.278, allocations: 8 kB / 471.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2781, allocations: 0 / 471.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.2781, allocations: 0 / 471.6 MB, free: 12.05 MB / 346.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.00416/0.2822, allocations: 1.896 MB / 473.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2823, allocations: 8.031 kB / 473.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002374/0.2825, allocations: 168.5 kB / 473.7 MB, free: 9.922 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004187/0.283, allocations: 178.1 kB / 473.8 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.2844, allocations: 0.9872 MB / 474.8 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.2846, allocations: 190.9 kB / 475 MB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.2848, allocations: 95.97 kB / 475.1 MB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/0.2874, allocations: 1.741 MB / 476.8 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.2874, allocations: 11.84 kB / 476.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.2875, allocations: 43.97 kB / 476.9 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.2877, allocations: 105.9 kB / 477 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.2904, allocations: 1.772 MB / 478.8 MB, free: 4.68 MB / 346.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.01086/0.3013, allocations: 6.75 MB / 485.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.3031, allocations: 1.23 MB / 486.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.3042, allocations: 0.7651 MB / 487.5 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005496/0.3097, allocations: 4.291 MB / 491.8 MB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.3098, allocations: 51.56 kB / 491.9 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007771/0.3105, allocations: 202.7 kB / 492.1 MB, free: 6.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 3.286e-06/0.3106, allocations: 0 / 492.1 MB, free: 6.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01768/0.3282, allocations: 5.748 MB / 497.8 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.3284, allocations: 149.4 kB / 497.9 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.33, allocations: 1.242 MB / 499.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.3302, allocations: 49.7 kB / 499.2 MB, free: 15.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/0.3306, allocations: 0.6169 MB / 499.9 MB, free: 14.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003565/0.331, allocations: 386.5 kB / 0.4885 GB, free: 14.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.3311, allocations: 24 kB / 0.4885 GB, free: 14.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3312, allocations: 365.9 kB / 0.4889 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.3324, allocations: 0.6988 MB / 0.4896 GB, free: 13.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.3337, allocations: 1.044 MB / 0.4906 GB, free: 12.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002291/0.336, allocations: 1.712 MB / 0.4923 GB, free: 10.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.336, allocations: 0 / 0.4923 GB, free: 10.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003553/0.3395, allocations: 2.241 MB / 0.4944 GB, free: 7.957 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002244/0.3398, allocations: 382.2 kB / 0.4948 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3398, allocations: 8 kB / 0.4948 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006692/0.3465, allocations: 1.273 MB / 0.4961 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.3478, allocations: 299.5 kB / 0.4963 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/0.3501, allocations: 1.599 MB / 0.4979 GB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.3514, allocations: 87.8 kB / 0.498 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.3516, allocations: 71.95 kB / 0.4981 GB, free: 4.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.3516, allocations: 4 kB / 0.4981 GB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003279/0.3549, allocations: 2.023 MB / 0.5 GB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.3549, allocations: 16.03 kB / 0.5 GB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006063/0.361, allocations: 1.111 MB / 0.5011 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.3623, allocations: 307.5 kB / 0.5014 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1516/0.5139, allocations: 1.447 MB / 0.5028 GB, free: 94.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.5153, allocations: 82.3 kB / 0.5029 GB, free: 94.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.5155, allocations: 69.78 kB / 0.503 GB, free: 94.65 MB / 378.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.000713/0.5162, allocations: 467.1 kB / 0.5034 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.5165, allocations: 145.3 kB / 0.5036 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/0.52, allocations: 2.083 MB / 0.5056 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.5201, allocations: 16.97 kB / 0.5056 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.5201, allocations: 0 / 0.5056 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.5201, allocations: 6.844 kB / 0.5056 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004593/0.5247, allocations: 3.57 MB / 0.5091 GB, free: 92.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.5247, allocations: 6.906 kB / 0.5091 GB, free: 92.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009148/0.5256, allocations: 194 kB / 0.5093 GB, free: 92.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003366/0.529, allocations: 1 MB / 0.5103 GB, free: 92.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.891e-05/0.5291, allocations: 36.72 kB / 0.5103 GB, free: 92.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.5308, allocations: 1.599 MB / 0.5119 GB, free: 91.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.5308, allocations: 3.938 kB / 0.5119 GB, free: 91.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/0.5343, allocations: 2.907 MB / 0.5147 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005338/0.5348, allocations: 407.1 kB / 0.5151 GB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.535, allocations: 23.83 kB / 0.5151 GB, free: 89.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008935/0.5359, allocations: 80.84 kB / 0.5152 GB, free: 89.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.5361, allocations: 103.5 kB / 0.5153 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.5363, allocations: 49.97 kB / 0.5154 GB, free: 89.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008534/0.5371, allocations: 0.8385 MB / 0.5162 GB, free: 89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5371, allocations: 0 / 0.5162 GB, free: 89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00206/0.5392, allocations: 1.16 MB / 0.5173 GB, free: 88.88 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.004865/0.5441, allocations: 4.202 MB / 0.5214 GB, free: 84.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004609/0.5487, allocations: 2.782 MB / 0.5241 GB, free: 82.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5487, allocations: 1.625 kB / 0.5241 GB, free: 82.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.5501, allocations: 0.8595 MB / 0.525 GB, free: 81.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.5527, allocations: 0.6149 MB / 0.5256 GB, free: 80.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.5657, allocations: 10.77 MB / 0.5361 GB, free: 69.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.5663, allocations: 1.296 MB / 0.5373 GB, free: 68.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/0.5669, allocations: 0.5539 MB / 0.5379 GB, free: 67.8 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.567, allocations: 4 kB / 0.5379 GB, free: 67.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.367/5.934, allocations: 37.7 MB / 0.5747 GB, free: 30.05 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches