Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.001174/0.001174, allocations: 108.2 kB / 16.51 MB, free: 6.707 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.0009565/0.0009566, allocations: 194.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009248/0.0009248, allocations: 47.62 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08151/0.08246, allocations: 49.44 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003996/0.08648, allocations: 2.802 MB / 352.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.08822, allocations: 0.8178 MB / 353.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003323/0.08858, allocations: 4 kB / 353.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003743/0.08899, allocations: 63.59 kB / 353.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004735/0.08948, allocations: 119.1 kB / 353.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.08975, allocations: 71.92 kB / 353.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000601/0.09037, allocations: 425 kB / 353.8 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.09058, allocations: 87.34 kB / 353.9 MB, free: 376 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.09085, allocations: 151.4 kB / 354 MB, free: 224 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003185/0.09118, allocations: 167.2 kB / 354.2 MB, free: 56 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.331e-05/0.09127, allocations: 20 kB / 354.2 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.162e-05/0.09136, allocations: 24 kB / 354.2 MB, free: 12 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.09147, allocations: 75.67 kB / 354.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.09169, allocations: 183.1 kB / 354.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.09214, allocations: 418.8 kB / 354.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.09215, allocations: 4 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09216, allocations: 0 / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.09218, allocations: 0 / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001336/0.09352, allocations: 0.6833 MB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.09358, allocations: 8.031 kB / 355.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.09373, allocations: 71.19 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.09386, allocations: 40.56 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.09432, allocations: 315.2 kB / 356 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.09445, allocations: 46.83 kB / 356 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.09451, allocations: 20.38 kB / 356.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.09513, allocations: 339.3 kB / 356.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.09516, allocations: 0 / 356.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.0952, allocations: 12 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.09522, allocations: 12 kB / 356.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.09567, allocations: 202.1 kB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.097, allocations: 0.8187 MB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005185/0.09753, allocations: 279 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.09775, allocations: 116.8 kB / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.0978, allocations: 7.984 kB / 357.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.09783, allocations: 38.56 kB / 357.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 3.947e-06/0.09784, allocations: 7.984 kB / 357.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001083/0.09893, allocations: 479.2 kB / 358.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.0991, allocations: 320.4 kB / 358.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.09941, allocations: 279 kB / 358.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.09946, allocations: 37.7 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.09959, allocations: 176.6 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.556e-05/0.09969, allocations: 98.47 kB / 359.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.0998, allocations: 69.69 kB / 359.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.09996, allocations: 342.8 kB / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.1002, allocations: 91.95 kB / 359.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.1005, allocations: 220.5 kB / 359.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004367/0.1009, allocations: 271.5 kB / 360.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1009, allocations: 3.938 kB / 360.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006067/0.1015, allocations: 361.6 kB / 360.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.1016, allocations: 29.7 kB / 360.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1016, allocations: 0 / 360.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001531/0.1018, allocations: 48.88 kB / 360.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009483/0.1027, allocations: 155.8 kB / 360.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00319/0.1059, allocations: 2.996 MB / 363.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.1062, allocations: 31.78 kB / 363.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.1063, allocations: 12 kB / 363.8 MB, free: 5.691 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001964/0.1065, allocations: 157.7 kB / 364 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.797e-05/0.1065, allocations: 31.62 kB / 364 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.1066, allocations: 39.08 kB / 364.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.1066, allocations: 4 kB / 364.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1066, allocations: 0 / 364.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006515/0.1073, allocations: 0.6554 MB / 364.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.1077, allocations: 393.4 kB / 365.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1077, allocations: 11.94 kB / 365.1 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.109, allocations: 207.8 kB / 365.3 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.36e-05/0.1091, allocations: 28.86 kB / 365.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.1091, allocations: 8 kB / 365.3 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002727/0.1118, allocations: 2.824 MB / 368.2 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1118, allocations: 0 / 368.2 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007752/0.1126, allocations: 0.5078 MB / 368.7 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.1128, allocations: 136.9 kB / 368.8 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.1128, allocations: 8 kB / 368.8 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.1131, allocations: 27.98 kB / 368.8 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.942e-05/0.1131, allocations: 23.95 kB / 368.9 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.1132, allocations: 11.98 kB / 368.9 MB, free: 164 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1296/0.2428, allocations: 195.8 kB / 369.1 MB, free: 25.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2428, allocations: 0 / 369.1 MB, free: 25.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006837/0.2435, allocations: 102.1 kB / 369.2 MB, free: 25.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001074/0.2446, allocations: 1.07 MB / 370.2 MB, free: 24.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.2461, allocations: 0.5303 MB / 370.8 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.2461, allocations: 0.9375 kB / 370.8 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.2475, allocations: 401.2 kB / 371.2 MB, free: 24.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.2481, allocations: 83.25 kB / 371.2 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004224/0.2523, allocations: 3.527 MB / 374.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.2525, allocations: 0.7758 MB / 375.6 MB, free: 22.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.2527, allocations: 37.48 kB / 375.6 MB, free: 22.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.2529, allocations: 105.1 kB / 375.7 MB, free: 22.07 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2529, allocations: 0 / 375.7 MB, free: 22.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.048/0.3009, allocations: 8.927 MB / 384.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/0.3011, allocations: 242 kB / 384.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.204, allocations: 0 / 384.9 MB, free: 19.54 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches