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.00114/0.00114, allocations: 109.5 kB / 17.73 MB, free: 5.363 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.001337/0.001337, allocations: 192 kB / 18.66 MB, free: 4.438 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.357/1.357, 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.001321/0.001321, allocations: 60.23 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08634, allocations: 46.63 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003638/0.09002, allocations: 2.741 MB / 377.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.09145, allocations: 0.8691 MB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000215/0.09169, allocations: 0 / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002927/0.09202, allocations: 79.39 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000326/0.09236, allocations: 134.9 kB / 378.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.0926, allocations: 91.83 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005081/0.09312, allocations: 438.4 kB / 379 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.09334, allocations: 111.1 kB / 379.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.09356, allocations: 159.4 kB / 379.2 MB, free: 484 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.09383, allocations: 183.2 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.089e-05/0.09391, allocations: 36 kB / 379.5 MB, free: 264 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.064e-05/0.09397, allocations: 32 kB / 379.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.434e-05/0.09404, allocations: 75.75 kB / 379.6 MB, free: 156 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1583/0.2523, allocations: 196.2 kB / 379.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.2529, allocations: 439.2 kB / 380.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2529, allocations: 0 / 380.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2529, allocations: 0 / 380.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.2529, allocations: 0 / 380.2 MB, free: 9.77 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.0009729/0.2539, allocations: 0.6742 MB / 380.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.254, allocations: 9.031 kB / 380.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.464e-05/0.2541, allocations: 73.03 kB / 380.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.695e-05/0.2541, allocations: 47.81 kB / 381 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.2545, allocations: 303.8 kB / 381.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.527e-05/0.2546, allocations: 51.56 kB / 381.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.2547, allocations: 26.05 kB / 381.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.2552, allocations: 337.8 kB / 381.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.2552, allocations: 2.562 kB / 381.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.2552, allocations: 13.19 kB / 381.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.2552, allocations: 5.344 kB / 381.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003942/0.2556, allocations: 211.2 kB / 381.9 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.257, allocations: 0.8125 MB / 382.7 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005678/0.2576, allocations: 276.4 kB / 383 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.2578, allocations: 116.7 kB / 383.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2578, allocations: 11.48 kB / 383.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.023e-05/0.2578, allocations: 39.69 kB / 383.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.2578, allocations: 0.6562 kB / 383.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009109/0.2588, allocations: 489 kB / 383.6 MB, free: 8.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.2588, allocations: 314.4 kB / 383.9 MB, free: 7.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.2591, allocations: 279.7 kB / 384.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.2591, allocations: 36.86 kB / 384.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.017e-05/0.2592, allocations: 170.3 kB / 384.4 MB, free: 7.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/0.2592, allocations: 112.9 kB / 384.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.872e-05/0.2594, allocations: 70.45 kB / 384.6 MB, free: 7.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.522e-05/0.2594, allocations: 341.9 kB / 384.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.2596, allocations: 97.05 kB / 385 MB, free: 7.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.2599, allocations: 204.7 kB / 385.2 MB, free: 7.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.2602, allocations: 262.8 kB / 385.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2602, allocations: 1.156 kB / 385.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005263/0.2608, allocations: 372.1 kB / 385.8 MB, free: 6.883 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.2608, allocations: 32.52 kB / 385.9 MB, free: 6.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2608, allocations: 1.75 kB / 385.9 MB, free: 6.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001364/0.261, allocations: 37.62 kB / 385.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009258/0.2619, allocations: 159 kB / 386.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.2646, allocations: 3.237 MB / 389.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.2649, allocations: 37.03 kB / 389.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.2649, allocations: 11.81 kB / 389.4 MB, free: 3.805 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.0001219/0.265, allocations: 147.9 kB / 389.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.972e-05/0.2651, allocations: 39.64 kB / 389.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.895e-05/0.2652, allocations: 32.64 kB / 389.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2652, allocations: 3.656 kB / 389.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.2652, allocations: 6.344 kB / 389.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004891/0.2657, allocations: 0.6515 MB / 390.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.2661, allocations: 396.7 kB / 390.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2661, allocations: 1.062 kB / 390.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.2673, allocations: 208.2 kB / 390.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.733e-05/0.2673, allocations: 26.62 kB / 390.8 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.2674, allocations: 6.094 kB / 390.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.2697, allocations: 3.043 MB / 393.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2697, allocations: 4.031 kB / 393.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.2705, allocations: 0.5131 MB / 394.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.2706, allocations: 138.2 kB / 394.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.2707, allocations: 11.06 kB / 394.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.2709, allocations: 16.67 kB / 394.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.121e-05/0.271, allocations: 27.06 kB / 394.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.271, allocations: 9.891 kB / 394.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.2712, allocations: 200.3 kB / 394.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2712, allocations: 0 / 394.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.2716, allocations: 109.9 kB / 394.9 MB, free: 15.21 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.001032/0.2727, allocations: 1.055 MB / 396 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.2741, allocations: 0.5329 MB / 396.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2741, allocations: 1.375 kB / 396.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.2755, allocations: 415.7 kB / 396.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.276, allocations: 91.09 kB / 397 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.2804, allocations: 3.391 MB / 400.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.2807, allocations: 0.7779 MB / 401.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.2808, allocations: 35.44 kB / 401.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.281, allocations: 107.8 kB / 401.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.281, allocations: 0 / 401.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1843/0.4653, allocations: 9.833 MB / 411.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.52, allocations: 3.594 kB / 411.1 MB, free: 7.371 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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