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.001083/0.001083, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001144/0.001144, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.347/1.347, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.002134/0.002134, allocations: 51.92 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1044, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003958/0.1084, allocations: 2.806 MB / 329.7 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1099, allocations: 0.85 MB / 330.5 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.1101, allocations: 0 / 330.5 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.1104, allocations: 67.58 kB / 330.6 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.1108, allocations: 123.1 kB / 330.7 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.111, allocations: 79.86 kB / 330.8 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005165/0.1116, allocations: 434.4 kB / 331.2 MB, free: 332 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.1118, allocations: 91.36 kB / 331.3 MB, free: 240 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.112, allocations: 163.4 kB / 331.5 MB, free: 76 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.1123, allocations: 179.4 kB / 331.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.258e-05/0.1124, allocations: 36 kB / 331.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.1124, allocations: 36 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.138e-05/0.1125, allocations: 71.75 kB / 331.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.1127, allocations: 195.1 kB / 332 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004037/0.1131, allocations: 434.7 kB / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1131, allocations: 0 / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1132, allocations: 0 / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.1132, allocations: 0 / 332.4 MB, free: 15.14 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.001101/0.1143, allocations: 0.6834 MB / 333.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.1143, allocations: 12.03 kB / 333.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.682e-05/0.1144, allocations: 67.12 kB / 333.2 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.1145, allocations: 44.47 kB / 333.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.1149, allocations: 303.5 kB / 333.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.115, allocations: 50.81 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.115, allocations: 28.22 kB / 333.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000508/0.1155, allocations: 335.3 kB / 333.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1156, allocations: 8 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.1156, allocations: 12 kB / 333.9 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.1156, allocations: 4 kB / 333.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.1161, allocations: 214.1 kB / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1175, allocations: 0.8381 MB / 335 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005514/0.1181, allocations: 267 kB / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.1183, allocations: 120.8 kB / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.1184, allocations: 7.984 kB / 335.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.1184, allocations: 38.56 kB / 335.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.883e-06/0.1184, allocations: 4 kB / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001092/0.1195, allocations: 475.9 kB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.1197, allocations: 320.5 kB / 336.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.12, allocations: 279 kB / 336.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.487e-05/0.12, allocations: 33.7 kB / 336.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1201, allocations: 172.6 kB / 336.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.551e-05/0.1202, allocations: 102.5 kB / 336.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1203, allocations: 73.59 kB / 336.8 MB, free: 10.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1205, allocations: 346.8 kB / 337.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.1207, allocations: 91.95 kB / 337.2 MB, free: 9.918 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002829/0.121, allocations: 211.8 kB / 337.5 MB, free: 9.668 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.1214, allocations: 266.7 kB / 337.7 MB, free: 9.391 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1214, allocations: 0 / 337.7 MB, free: 9.391 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006263/0.1221, allocations: 368.7 kB / 338.1 MB, free: 9.016 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.1221, allocations: 37.69 kB / 338.1 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1221, allocations: 0 / 338.1 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.1223, allocations: 36.84 kB / 338.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.1233, allocations: 163.9 kB / 338.3 MB, free: 8.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003517/0.1268, allocations: 3.236 MB / 341.5 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.1271, allocations: 31.78 kB / 341.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.1272, allocations: 8 kB / 341.6 MB, free: 5.227 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.0001726/0.1274, allocations: 157.9 kB / 341.7 MB, free: 5.062 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-05/0.1274, allocations: 39.61 kB / 341.8 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.08e-05/0.1275, allocations: 39.08 kB / 341.8 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1275, allocations: 4 kB / 341.8 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1275, allocations: 3.938 kB / 341.8 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006356/0.1282, allocations: 0.6504 MB / 342.5 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/0.1286, allocations: 389.2 kB / 342.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1286, allocations: 7.938 kB / 342.9 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.1299, allocations: 207.8 kB / 343.1 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.69e-05/0.13, allocations: 28.78 kB / 343.1 MB, free: 3.547 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.13, allocations: 8 kB / 343.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003159/0.1332, allocations: 3.053 MB / 346.2 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1332, allocations: 0 / 346.2 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008195/0.1341, allocations: 0.5078 MB / 346.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.1342, allocations: 136.7 kB / 346.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.1343, allocations: 8 kB / 346.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.1346, allocations: 19.92 kB / 346.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-05/0.1346, allocations: 27.91 kB / 346.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.1347, allocations: 4 kB / 346.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001987/0.1349, allocations: 206 kB / 347.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1349, allocations: 0 / 347.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004513/0.1353, allocations: 107.8 kB / 347.2 MB, free: 15.16 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.001088/0.1364, allocations: 1.053 MB / 348.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.138, allocations: 0.5528 MB / 348.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1381, allocations: 0 / 348.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.1395, allocations: 406.3 kB / 349.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.1402, allocations: 95.69 kB / 349.3 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/0.1453, allocations: 3.526 MB / 352.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1457, allocations: 0.7801 MB / 353.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001937/0.1459, allocations: 30.97 kB / 353.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.146, allocations: 111.4 kB / 353.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1461, allocations: 0 / 353.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1724, allocations: 9.298 MB / 363 MB, free: 15.1 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002628/0.1727, allocations: 235.2 kB / 363.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.176, allocations: 3.938 kB / 363.2 MB, free: 14.83 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","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches