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.001162/0.001162, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001279/0.001279, allocations: 192 kB / 18.51 MB, free: 4.641 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.263/1.263, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001136/0.001136, allocations: 55.92 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.08017, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004315/0.08453, allocations: 2.749 MB / 330.1 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.08637, allocations: 0.8654 MB / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004578/0.08686, allocations: 0 / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004563/0.08738, allocations: 75.41 kB / 331.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000695/0.08809, allocations: 138.9 kB / 331.2 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.08851, allocations: 83.84 kB / 331.3 MB, free: 448 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00093/0.08946, allocations: 442.3 kB / 331.7 MB, free: 4 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003263/0.0898, allocations: 99.41 kB / 331.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003999/0.09021, allocations: 151.4 kB / 332 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.09061, allocations: 187.2 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.629e-05/0.09071, allocations: 36 kB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.09083, allocations: 36 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.09095, allocations: 75.69 kB / 332.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003173/0.09128, allocations: 191.1 kB / 332.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005215/0.09181, allocations: 434.8 kB / 332.9 MB, free: 14.81 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.09182, allocations: 0 / 332.9 MB, free: 14.81 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09183, allocations: 0 / 332.9 MB, free: 14.81 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.09185, allocations: 0 / 332.9 MB, free: 14.81 MB / 286.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.001231/0.09309, allocations: 0.6834 MB / 333.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.09315, allocations: 12.03 kB / 333.6 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.09328, allocations: 67.19 kB / 333.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.09342, allocations: 48.41 kB / 333.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.09394, allocations: 295.5 kB / 334 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.09411, allocations: 62.75 kB / 334.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.059e-05/0.09418, allocations: 24.28 kB / 334.1 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006979/0.09489, allocations: 335.3 kB / 334.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.09493, allocations: 4 kB / 334.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.246e-05/0.09498, allocations: 12 kB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.095, allocations: 4 kB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.09548, allocations: 206.1 kB / 334.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.097, allocations: 0.8381 MB / 335.5 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000549/0.09756, allocations: 267 kB / 335.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.09778, allocations: 124.9 kB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.09783, allocations: 4 kB / 335.9 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.09786, allocations: 42.55 kB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 3.206e-06/0.09787, allocations: 3.984 kB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009982/0.09888, allocations: 483.2 kB / 336.4 MB, free: 11.1 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.09902, allocations: 316.4 kB / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.09932, allocations: 275 kB / 336.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.09937, allocations: 33.7 kB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.09951, allocations: 176.6 kB / 337.2 MB, free: 10.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.09961, allocations: 102.5 kB / 337.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.09973, allocations: 65.61 kB / 337.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.09988, allocations: 350.7 kB / 337.7 MB, free: 9.691 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.1001, allocations: 91.95 kB / 337.7 MB, free: 9.602 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.1004, allocations: 219.7 kB / 338 MB, free: 9.344 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004301/0.1009, allocations: 262.8 kB / 338.2 MB, free: 9.07 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1009, allocations: 3.938 kB / 338.2 MB, free: 9.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006015/0.1015, allocations: 364.8 kB / 338.6 MB, free: 8.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.1015, allocations: 33.7 kB / 338.6 MB, free: 8.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1015, allocations: 0 / 338.6 MB, free: 8.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.1017, allocations: 44.83 kB / 338.7 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009493/0.1026, allocations: 159.9 kB / 338.8 MB, free: 8.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003499/0.1062, allocations: 3.236 MB / 342 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.1064, allocations: 31.78 kB / 342.1 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.1065, allocations: 12 kB / 342.1 MB, free: 4.902 MB / 286.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.0001758/0.1067, allocations: 149.8 kB / 342.2 MB, free: 4.746 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.979e-05/0.1068, allocations: 35.62 kB / 342.3 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.913e-05/0.1068, allocations: 35.08 kB / 342.3 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1069, allocations: 8 kB / 342.3 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1069, allocations: 7.922 kB / 342.3 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006943/0.1076, allocations: 0.651 MB / 343 MB, free: 3.902 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/0.108, allocations: 389.2 kB / 343.4 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.108, allocations: 4 kB / 343.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.1093, allocations: 203.8 kB / 343.6 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.136e-05/0.1094, allocations: 36.8 kB / 343.6 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.1094, allocations: 4 kB / 343.6 MB, free: 3.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003082/0.1125, allocations: 3.049 MB / 346.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1125, allocations: 0 / 346.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007811/0.1133, allocations: 0.508 MB / 347.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.1135, allocations: 140.8 kB / 347.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.282e-05/0.1135, allocations: 11.98 kB / 347.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.1138, allocations: 19.92 kB / 347.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/0.1139, allocations: 23.97 kB / 347.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1139, allocations: 8 kB / 347.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001855/0.1141, allocations: 202 kB / 347.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1141, allocations: 0 / 347.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004228/0.1145, allocations: 107.8 kB / 347.7 MB, free: 14.85 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.001073/0.1156, allocations: 1.053 MB / 348.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.1171, allocations: 0.5527 MB / 349.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1171, allocations: 4.188 kB / 349.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.1185, allocations: 398.9 kB / 349.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/0.1191, allocations: 96.25 kB / 349.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004933/0.124, allocations: 3.427 MB / 353.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.1244, allocations: 0.7762 MB / 354 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.1246, allocations: 38.95 kB / 354 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.1247, allocations: 107.4 kB / 354.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1247, allocations: 0 / 354.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02894/0.1537, allocations: 9.459 MB / 363.6 MB, free: 14.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.2, allocations: 11.97 kB / 363.6 MB, free: 14.66 MB / 318.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