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.001563/0.001563, allocations: 104 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 63.48 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1039, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1929/0.2968, allocations: 28.86 MB / 386.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01809/0.3149, allocations: 15.04 MB / 401.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001607/0.3166, allocations: 43.56 kB / 401.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.3181, allocations: 0.587 MB / 402.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005699/0.3238, allocations: 2.3 MB / 404.4 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01088/0.3347, allocations: 3.735 MB / 408.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007356/0.3421, allocations: 4.144 MB / 412.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001909/0.344, allocations: 1.156 MB / 413.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002712/0.3467, allocations: 1.551 MB / 415 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002439/0.3492, allocations: 1.659 MB / 416.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003205/0.3495, allocations: 164 kB / 416.8 MB, free: 376 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005078/0.3546, allocations: 2.437 MB / 419.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000699/0.3553, allocations: 0.6155 MB / 419.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001133/0.3565, allocations: 0.8711 MB / 420.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005992/0.3625, allocations: 3.705 MB / 424.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3625, allocations: 0 / 424.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3625, allocations: 0 / 424.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.3625, allocations: 0 / 424.4 MB, free: 8.715 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.004732/0.3673, allocations: 2.201 MB / 426.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.3673, allocations: 16.02 kB / 426.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002149/0.3676, allocations: 168.5 kB / 426.8 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005249/0.3681, allocations: 170.1 kB / 427 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.3696, allocations: 1.007 MB / 428 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.3698, allocations: 178.9 kB / 428.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.37, allocations: 101 kB / 428.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.3725, allocations: 1.749 MB / 430 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.3726, allocations: 3.906 kB / 430 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.3727, allocations: 43.97 kB / 430.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.3729, allocations: 117.9 kB / 430.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.3755, allocations: 1.784 MB / 431.9 MB, free: 1.004 MB / 334.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.01023/0.3857, allocations: 6.708 MB / 438.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.3875, allocations: 1.251 MB / 439.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.3886, allocations: 0.7656 MB / 440.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005524/0.3941, allocations: 4.279 MB / 445 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.3942, allocations: 47.56 kB / 445 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000766/0.395, allocations: 170.8 kB / 445.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 4.909e-06/0.395, allocations: 0 / 445.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01721/0.4122, allocations: 5.694 MB / 450.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.4123, allocations: 145.5 kB / 451 MB, free: 13.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.414, allocations: 1.257 MB / 452.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.4141, allocations: 49.7 kB / 452.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004128/0.4145, allocations: 0.6129 MB / 452.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003139/0.4148, allocations: 386.5 kB / 453.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004426/0.4153, allocations: 287.4 kB / 453.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.924e-05/0.4154, allocations: 301.1 kB / 453.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.4165, allocations: 0.7269 MB / 454.6 MB, free: 9.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.4178, allocations: 1.068 MB / 455.7 MB, free: 8.246 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/0.4202, allocations: 1.739 MB / 457.4 MB, free: 6.375 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.4203, allocations: 4 kB / 457.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003639/0.4239, allocations: 2.288 MB / 459.7 MB, free: 4.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.4239, allocations: 15.94 kB / 459.7 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.424, allocations: 8.594 kB / 459.7 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006663/0.4306, allocations: 1.282 MB / 461 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.4318, allocations: 299.6 kB / 461.3 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/0.434, allocations: 1.599 MB / 462.9 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.4353, allocations: 55.95 kB / 463 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/0.4354, allocations: 71.97 kB / 463 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001568/0.437, allocations: 0.9841 MB / 464 MB, free: 15.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001348/0.4384, allocations: 1.055 MB / 465.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002394/0.4408, allocations: 1.722 MB / 466.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.417e-05/0.4408, allocations: 8 kB / 466.8 MB, free: 12.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.00418/0.445, allocations: 2.195 MB / 469 MB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.445, allocations: 8 kB / 469 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/0.445, allocations: 12 kB / 469 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006053/0.4511, allocations: 1.101 MB / 470.1 MB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.4523, allocations: 307.5 kB / 470.4 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/0.4542, allocations: 1.453 MB / 471.9 MB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.4556, allocations: 59.97 kB / 471.9 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/0.4559, allocations: 72.06 kB / 472 MB, free: 7.41 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.0005843/0.4564, allocations: 280.7 kB / 472.3 MB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/0.4569, allocations: 142.3 kB / 472.4 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004245/0.4612, allocations: 2.093 MB / 474.5 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.4612, allocations: 15.94 kB / 474.5 MB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4612, allocations: 7.938 kB / 474.5 MB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4612, allocations: 3.984 kB / 474.5 MB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/0.467, allocations: 3.586 MB / 478.1 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.467, allocations: 4 kB / 478.1 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009099/0.4679, allocations: 191.8 kB / 478.3 MB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/0.4703, allocations: 0.8559 MB / 479.2 MB, free: 168 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.4704, allocations: 27.98 kB / 479.2 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00219/0.4726, allocations: 1.623 MB / 480.8 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4726, allocations: 3.938 kB / 480.8 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004498/0.4771, allocations: 2.903 MB / 483.7 MB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000879/0.478, allocations: 387.2 kB / 484.1 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004064/0.4784, allocations: 27.98 kB / 484.1 MB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.4796, allocations: 63.94 kB / 484.2 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.4799, allocations: 97.3 kB / 484.3 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.48, allocations: 51.97 kB / 484.3 MB, free: 10.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001352/0.4814, allocations: 0.848 MB / 485.2 MB, free: 10.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4814, allocations: 3.938 kB / 485.2 MB, free: 10.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003421/0.4848, allocations: 1.163 MB / 486.3 MB, free: 8.91 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.006563/0.4914, allocations: 4.214 MB / 490.6 MB, free: 4.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007534/0.499, allocations: 3.295 MB / 493.9 MB, free: 1.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.499, allocations: 3.938 kB / 493.9 MB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.5008, allocations: 0.8729 MB / 494.7 MB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/0.5043, allocations: 0.6707 MB / 495.4 MB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02408/0.5284, allocations: 15.15 MB / 0.4986 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008856/0.5294, allocations: 1.292 MB / 0.4998 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002117/0.5315, allocations: 0.5823 MB / 0.5004 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007674/0.5323, allocations: 0.5383 MB / 0.5009 GB, free: 13.51 MB / 430.1 MB Notification: Performance of SimCode: time 2.244e-06/0.5323, allocations: 0 / 0.5009 GB, free: 13.51 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9416/1.474, allocations: 57.53 MB / 0.5571 GB, free: 142 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/16.78, allocations: 3.938 kB / 0.5571 GB, free: 142 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