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.001088/0.001089, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001017/0.001017, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.439/1.439, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001324/0.001324, allocations: 51.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09317, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004516/0.09774, allocations: 2.765 MB / 377.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.09961, allocations: 0.8652 MB / 378.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003891/0.1, allocations: 7.938 kB / 378.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004139/0.1005, allocations: 67.47 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005747/0.1011, allocations: 142.9 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.1014, allocations: 87.89 kB / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007695/0.1022, allocations: 442.3 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.1024, allocations: 107.1 kB / 379.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.1027, allocations: 151.5 kB / 379.2 MB, free: 460 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.103, allocations: 183.2 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.1031, allocations: 43.94 kB / 379.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.485e-05/0.1031, allocations: 36 kB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.1032, allocations: 67.77 kB / 379.6 MB, free: 128 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2113/0.3145, allocations: 192.6 kB / 379.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000749/0.3153, allocations: 441.9 kB / 380.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3153, allocations: 0 / 380.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3153, allocations: 0 / 380.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.3154, allocations: 1.156 kB / 380.2 MB, free: 9.746 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.001111/0.3165, allocations: 0.6852 MB / 380.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.3165, allocations: 10.06 kB / 380.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.3166, allocations: 70.36 kB / 380.9 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.79e-05/0.3168, allocations: 44.75 kB / 381 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.3172, allocations: 309.3 kB / 381.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.984e-05/0.3173, allocations: 48.73 kB / 381.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.3174, allocations: 27.58 kB / 381.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.3179, allocations: 343 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.3179, allocations: 4.688 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.3179, allocations: 9.812 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.318, allocations: 7.344 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.3184, allocations: 206.9 kB / 381.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.32, allocations: 0.8216 MB / 382.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006868/0.3207, allocations: 274.7 kB / 383 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.3209, allocations: 118.6 kB / 383.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.321, allocations: 13.77 kB / 383.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.321, allocations: 37.88 kB / 383.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.683e-06/0.321, allocations: 1.125 kB / 383.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001115/0.3221, allocations: 488.3 kB / 383.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.344e-05/0.3222, allocations: 315.2 kB / 384 MB, free: 7.863 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/0.3225, allocations: 284.8 kB / 384.2 MB, free: 7.754 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.3226, allocations: 31.8 kB / 384.3 MB, free: 7.723 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.3227, allocations: 177.3 kB / 384.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.243e-05/0.3228, allocations: 108.7 kB / 384.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.3229, allocations: 68.22 kB / 384.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.897e-05/0.323, allocations: 348.8 kB / 385 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.3233, allocations: 89.84 kB / 385.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.3236, allocations: 209.8 kB / 385.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004253/0.324, allocations: 264.5 kB / 385.5 MB, free: 7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.324, allocations: 0 / 385.5 MB, free: 7 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000591/0.3246, allocations: 369.2 kB / 385.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.3246, allocations: 32.59 kB / 385.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3247, allocations: 1.281 kB / 385.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000171/0.3248, allocations: 40.8 kB / 385.9 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.3258, allocations: 157.8 kB / 386.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003118/0.329, allocations: 3.237 MB / 389.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.3293, allocations: 36.02 kB / 389.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.3294, allocations: 9.172 kB / 389.4 MB, free: 3.738 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.0001944/0.3296, allocations: 154.3 kB / 389.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.3297, allocations: 37.95 kB / 389.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.277e-05/0.3297, allocations: 37.92 kB / 389.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3298, allocations: 8.266 kB / 389.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.3298, allocations: 3.938 kB / 389.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005932/0.3304, allocations: 0.6524 MB / 390.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004906/0.3309, allocations: 391 kB / 390.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3309, allocations: 1.062 kB / 390.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.3322, allocations: 205.7 kB / 390.9 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.277e-05/0.3323, allocations: 22.81 kB / 390.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.3323, allocations: 9.672 kB / 390.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002707/0.335, allocations: 3.045 MB / 393.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.335, allocations: 8.875 kB / 393.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009901/0.336, allocations: 0.5087 MB / 394.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.3363, allocations: 142.2 kB / 394.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.258e-05/0.3363, allocations: 12.19 kB / 394.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.3366, allocations: 19.81 kB / 394.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3367, allocations: 29.98 kB / 394.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.3367, allocations: 10 kB / 394.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.337, allocations: 200.5 kB / 394.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.337, allocations: 0 / 394.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005172/0.3375, allocations: 109.8 kB / 395 MB, free: 15.13 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.001385/0.3389, allocations: 1.054 MB / 396 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.3406, allocations: 0.5356 MB / 396.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3407, allocations: 1.594 kB / 396.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.3421, allocations: 407.7 kB / 397 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/0.3427, allocations: 87.62 kB / 397 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005836/0.3485, allocations: 3.414 MB / 400.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.349, allocations: 0.7786 MB / 401.2 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.3492, allocations: 35.69 kB / 401.3 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.3494, allocations: 108.3 kB / 401.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of SimCode: time 2.244e-06/0.3494, allocations: 0 / 401.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04351/0.3929, allocations: 9.636 MB / 411 MB, free: 7.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12, allocations: 6.547 kB / 411 MB, free: 7.406 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