Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000827/0.0008272, allocations: 97.3 kB / 17.3 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008962/0.0008962, allocations: 178.5 kB / 18.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005051/0.0005052, allocations: 12 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.09911, allocations: 47.57 MB / 329 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02914/0.1283, allocations: 29.53 MB / 358.6 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02052/0.1489, allocations: 15.49 MB / 374.1 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.1508, allocations: 59.5 kB / 374.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.1522, allocations: 0.5284 MB / 374.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00538/0.1576, allocations: 2.151 MB / 376.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00819/0.1658, allocations: 3.164 MB / 380 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1884/0.3542, allocations: 6.139 MB / 386.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002043/0.3563, allocations: 1.017 MB / 387.1 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002819/0.3591, allocations: 1.325 MB / 388.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002644/0.3618, allocations: 1.649 MB / 390.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002578/0.3621, allocations: 86.75 kB / 390.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005038/0.3671, allocations: 2.355 MB / 392.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006776/0.3678, allocations: 0.5461 MB / 393.1 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.3689, allocations: 0.8125 MB / 393.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.3743, allocations: 3.612 MB / 397.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3743, allocations: 0 / 397.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3743, allocations: 0 / 397.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.771e-05/0.3743, allocations: 0 / 397.5 MB, free: 11.02 MB / 318.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.004184/0.3785, allocations: 1.891 MB / 399.4 MB, free: 9.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3786, allocations: 10.47 kB / 399.4 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002386/0.3788, allocations: 173.4 kB / 399.6 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004537/0.3793, allocations: 174.6 kB / 399.8 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.3806, allocations: 1.004 MB / 400.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.3808, allocations: 178.4 kB / 400.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.3809, allocations: 100.1 kB / 401 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002322/0.3833, allocations: 1.759 MB / 402.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.3833, allocations: 0 / 402.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.3835, allocations: 44.75 kB / 402.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.3836, allocations: 113 kB / 402.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/0.3859, allocations: 1.785 MB / 404.7 MB, free: 8.25 MB / 318.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.00904/0.395, allocations: 6.741 MB / 411.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.3966, allocations: 1.239 MB / 412.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009261/0.3975, allocations: 0.7712 MB / 413.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004341/0.4019, allocations: 4.281 MB / 417.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.4019, allocations: 54.55 kB / 417.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006264/0.4025, allocations: 202 kB / 418 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.035e-06/0.4026, allocations: 0 / 418 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01686/0.4194, allocations: 5.758 MB / 423.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.445e-05/0.4195, allocations: 145.5 kB / 423.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.4211, allocations: 1.25 MB / 425.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.4212, allocations: 52.89 kB / 425.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004399/0.4217, allocations: 0.6104 MB / 425.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003213/0.422, allocations: 393.1 kB / 426.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.4222, allocations: 117.7 kB / 426.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.4223, allocations: 305.1 kB / 426.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.4234, allocations: 0.7171 MB / 427.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.4247, allocations: 1.067 MB / 428.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002333/0.4271, allocations: 1.741 MB / 430.1 MB, free: 4.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.4271, allocations: 4 kB / 430.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00347/0.4306, allocations: 2.284 MB / 432.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002079/0.4308, allocations: 378.8 kB / 432.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.4308, allocations: 13 kB / 432.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006624/0.4375, allocations: 1.288 MB / 434.1 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.4386, allocations: 297.5 kB / 434.4 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/0.4408, allocations: 1.605 MB / 436 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.4419, allocations: 79.8 kB / 436.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.4421, allocations: 79.91 kB / 436.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.4421, allocations: 4 kB / 436.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003155/0.4453, allocations: 2.035 MB / 438.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4453, allocations: 12 kB / 438.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00589/0.4512, allocations: 1.121 MB / 439.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.4523, allocations: 305.6 kB / 439.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.4543, allocations: 1.471 MB / 441.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.4554, allocations: 79.81 kB / 441.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.4556, allocations: 75.95 kB / 441.3 MB, free: 9.262 MB / 350.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.0007285/0.4563, allocations: 461.5 kB / 441.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/0.4566, allocations: 146.2 kB / 441.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/0.4608, allocations: 2.095 MB / 443.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.4609, allocations: 12 kB / 444 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.4609, allocations: 4 kB / 444 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.4609, allocations: 7.969 kB / 444 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005398/0.4663, allocations: 3.577 MB / 447.5 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.4663, allocations: 4 kB / 447.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008624/0.4672, allocations: 197 kB / 447.7 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0036/0.4708, allocations: 0.997 MB / 448.7 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.4709, allocations: 35.98 kB / 448.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/0.473, allocations: 1.609 MB / 450.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.473, allocations: 0 / 450.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00436/0.4774, allocations: 2.913 MB / 453.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008807/0.4783, allocations: 403.8 kB / 453.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003417/0.4786, allocations: 24 kB / 453.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.4798, allocations: 87.97 kB / 453.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.48, allocations: 97.16 kB / 453.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.4802, allocations: 60.03 kB / 453.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001293/0.4815, allocations: 0.845 MB / 454.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.863e-06/0.4815, allocations: 0 / 454.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003394/0.4849, allocations: 1.167 MB / 456 MB, free: 10.47 MB / 366.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.006879/0.4918, allocations: 4.209 MB / 460.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005954/0.4977, allocations: 2.821 MB / 463 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.4977, allocations: 0 / 463 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.4994, allocations: 0.8844 MB / 463.9 MB, free: 2.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.5025, allocations: 0.6145 MB / 464.5 MB, free: 2.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02487/0.5274, allocations: 15.73 MB / 480.2 MB, free: 1.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009539/0.5283, allocations: 1.296 MB / 481.5 MB, free: 372 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002073/0.5304, allocations: 0.5889 MB / 482.1 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007802/0.5312, allocations: 0.5383 MB / 482.6 MB, free: 15.23 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5312, allocations: 0 / 482.6 MB, free: 15.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09148/0.6227, allocations: 54.84 MB / 0.5249 GB, free: 8.457 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002846/0.623, allocations: 240 kB / 0.5251 GB, free: 8.184 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.397/4.02, allocations: 0 / 0.5251 GB, free: 8.184 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches