Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_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.00108/0.00108, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001102/0.001102, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.376/1.376, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001229/0.001229, allocations: 51.92 kB / 328 MB, free: 3.848 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09414, allocations: 46.62 MB / 374.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004496/0.09868, allocations: 2.753 MB / 377.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.1004, allocations: 0.8691 MB / 378.3 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/0.1007, allocations: 4 kB / 378.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.1011, allocations: 71.41 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004573/0.1015, allocations: 138.9 kB / 378.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.1018, allocations: 87.83 kB / 378.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006404/0.1025, allocations: 450.3 kB / 379 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.1027, allocations: 103.1 kB / 379.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.103, allocations: 155.5 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.1033, allocations: 179.2 kB / 379.4 MB, free: 312 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.515e-05/0.1033, allocations: 40 kB / 379.5 MB, free: 272 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.1034, allocations: 32 kB / 379.5 MB, free: 240 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.1035, allocations: 83.67 kB / 379.6 MB, free: 156 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1834/0.2869, allocations: 186.2 kB / 379.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008789/0.2879, allocations: 440 kB / 380.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.2879, allocations: 4.562 kB / 380.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2879, allocations: 0 / 380.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.2879, allocations: 0 / 380.2 MB, free: 9.754 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001401/0.2893, allocations: 0.6845 MB / 380.9 MB, free: 9.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.734e-05/0.2894, allocations: 10.06 kB / 380.9 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/0.2896, allocations: 71.84 kB / 380.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.2897, allocations: 44.52 kB / 381 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006447/0.2904, allocations: 307.3 kB / 381.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.2905, allocations: 51.69 kB / 381.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.489e-05/0.2906, allocations: 28.77 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006734/0.2913, allocations: 342.5 kB / 381.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.2913, allocations: 0 / 381.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.2913, allocations: 14.38 kB / 381.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.2914, allocations: 5.5 kB / 381.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005247/0.2919, allocations: 211.8 kB / 381.9 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.2937, allocations: 0.8215 MB / 382.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006661/0.2944, allocations: 273.9 kB / 383 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.2947, allocations: 115.6 kB / 383.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.2947, allocations: 3.891 kB / 383.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.2948, allocations: 45.08 kB / 383.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.2948, allocations: 0 / 383.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00111/0.2959, allocations: 487.5 kB / 383.7 MB, free: 8.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.296, allocations: 314.2 kB / 384 MB, free: 7.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.2963, allocations: 283.8 kB / 384.2 MB, free: 7.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.2964, allocations: 34.95 kB / 384.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.2965, allocations: 181.6 kB / 384.5 MB, free: 7.621 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.305e-05/0.2966, allocations: 109.1 kB / 384.6 MB, free: 7.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.2967, allocations: 70.02 kB / 384.6 MB, free: 7.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.2968, allocations: 346.9 kB / 385 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002411/0.297, allocations: 90.53 kB / 385.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.2974, allocations: 204.2 kB / 385.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.2979, allocations: 264.3 kB / 385.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.2979, allocations: 1.812 kB / 385.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006484/0.2985, allocations: 366.7 kB / 385.9 MB, free: 6.828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.2986, allocations: 33.23 kB / 385.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2986, allocations: 0.7031 kB / 385.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001531/0.2987, allocations: 41.33 kB / 385.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009908/0.2997, allocations: 159.5 kB / 386.1 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003246/0.303, allocations: 3.244 MB / 389.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.3034, allocations: 35.08 kB / 389.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.3034, allocations: 13.89 kB / 389.4 MB, free: 3.746 MB / 318.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.0002003/0.3036, allocations: 153.3 kB / 389.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.3037, allocations: 34.45 kB / 389.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.3038, allocations: 38.53 kB / 389.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3038, allocations: 7.203 kB / 389.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3038, allocations: 5 kB / 389.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005908/0.3044, allocations: 0.6482 MB / 390.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005123/0.3049, allocations: 391.4 kB / 390.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3049, allocations: 0.9375 kB / 390.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.3063, allocations: 206.7 kB / 390.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.916e-05/0.3064, allocations: 24.5 kB / 390.9 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.3064, allocations: 10.89 kB / 390.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002775/0.3092, allocations: 3.045 MB / 393.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3092, allocations: 9.406 kB / 393.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008935/0.3101, allocations: 0.5087 MB / 394.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001974/0.3103, allocations: 143.3 kB / 394.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.3104, allocations: 6.406 kB / 394.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.3106, allocations: 20.86 kB / 394.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.188e-05/0.3107, allocations: 31 kB / 394.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.3107, allocations: 6.75 kB / 394.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.311, allocations: 200.2 kB / 394.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.311, allocations: 0 / 394.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004704/0.3115, allocations: 109 kB / 395 MB, free: 15.14 MB / 334.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.001245/0.3127, allocations: 1.055 MB / 396 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.3143, allocations: 0.537 MB / 396.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3144, allocations: 1.406 kB / 396.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.3158, allocations: 400.9 kB / 396.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005462/0.3164, allocations: 96.97 kB / 397 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0051/0.3215, allocations: 3.408 MB / 400.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.3219, allocations: 0.7798 MB / 401.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001971/0.3221, allocations: 36.11 kB / 401.3 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.3223, allocations: 107.3 kB / 401.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3223, allocations: 2.625 kB / 401.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.3568, allocations: 9.628 MB / 411 MB, free: 7.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.15, allocations: 8.953 kB / 411 MB, free: 7.426 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches