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.0009029/0.0009028, allocations: 95.61 kB / 17.3 MB, free: 6.391 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.0009601/0.0009602, allocations: 175.6 kB / 18.21 MB, free: 5.551 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.311/1.311, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004476/0.0004477, allocations: 8 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.09291, allocations: 47.57 MB / 329 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003027/0.09599, allocations: 2.448 MB / 331.5 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.09726, allocations: 0.7917 MB / 332.3 MB, free: 424 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.09738, allocations: 4 kB / 332.3 MB, free: 420 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.09762, allocations: 63.59 kB / 332.3 MB, free: 356 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.09786, allocations: 115.1 kB / 332.5 MB, free: 240 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.09805, allocations: 87.91 kB / 332.5 MB, free: 152 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003849/0.09845, allocations: 410.4 kB / 332.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.09862, allocations: 79.36 kB / 333 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.09877, allocations: 143.5 kB / 333.2 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.09898, allocations: 171.2 kB / 333.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.09903, allocations: 28 kB / 333.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.829e-05/0.09909, allocations: 20 kB / 333.4 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.394e-05/0.09916, allocations: 67.75 kB / 333.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.09933, allocations: 200.8 kB / 333.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.09969, allocations: 414.7 kB / 334 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.09971, allocations: 3.938 kB / 334 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09971, allocations: 0 / 334 MB, free: 14.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09973, allocations: 0 / 334 MB, free: 14.63 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.0009417/0.1007, allocations: 0.6212 MB / 334.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1007, allocations: 12.02 kB / 334.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.565e-05/0.1008, allocations: 63.2 kB / 334.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.514e-05/0.1009, allocations: 48.47 kB / 334.8 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.1013, allocations: 303.4 kB / 335.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.283e-05/0.1014, allocations: 58.81 kB / 335.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.191e-05/0.1014, allocations: 24.38 kB / 335.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/0.102, allocations: 339.3 kB / 335.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.102, allocations: 0 / 335.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.102, allocations: 12 kB / 335.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.102, allocations: 11.94 kB / 335.5 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004239/0.1025, allocations: 222 kB / 335.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1038, allocations: 0.8343 MB / 336.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.1044, allocations: 279.1 kB / 336.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.1046, allocations: 132.8 kB / 337 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.1047, allocations: 0 / 337 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.1047, allocations: 38.56 kB / 337 MB, free: 11.45 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 9.92e-07/0.1047, allocations: 0 / 337 MB, free: 11.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009814/0.1057, allocations: 491.9 kB / 337.5 MB, free: 10.94 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.1058, allocations: 324.4 kB / 337.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.1061, allocations: 279 kB / 338.1 MB, free: 10.26 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.1062, allocations: 37.7 kB / 338.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.1063, allocations: 172.6 kB / 338.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.729e-05/0.1064, allocations: 106.4 kB / 338.4 MB, free: 9.938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.863e-05/0.1064, allocations: 37.7 kB / 338.4 MB, free: 9.895 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1066, allocations: 342.8 kB / 338.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.1068, allocations: 99.89 kB / 338.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.1071, allocations: 211.8 kB / 339.1 MB, free: 9.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000445/0.1075, allocations: 274.7 kB / 339.3 MB, free: 8.918 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1076, allocations: 4 kB / 339.3 MB, free: 8.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006126/0.1082, allocations: 376.7 kB / 339.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.1082, allocations: 37.69 kB / 339.7 MB, free: 8.488 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1082, allocations: 0 / 339.7 MB, free: 8.488 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/0.1084, allocations: 36.84 kB / 339.8 MB, free: 8.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009761/0.1094, allocations: 203.9 kB / 340 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003353/0.1127, allocations: 3.078 MB / 343.1 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.113, allocations: 39.8 kB / 343.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.1131, allocations: 8 kB / 343.1 MB, free: 4.867 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.0001816/0.1133, allocations: 157.7 kB / 343.3 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.1133, allocations: 31.62 kB / 343.3 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.851e-05/0.1134, allocations: 39.08 kB / 343.3 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1134, allocations: 4 kB / 343.3 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-06/0.1134, allocations: 0 / 343.3 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006436/0.1141, allocations: 0.6698 MB / 344 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004089/0.1145, allocations: 389.2 kB / 344.4 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1145, allocations: 0 / 344.4 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.1158, allocations: 263.7 kB / 344.6 MB, free: 3.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.028e-05/0.1159, allocations: 20.84 kB / 344.7 MB, free: 3.141 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.1159, allocations: 8 kB / 344.7 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/0.1188, allocations: 2.906 MB / 347.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1189, allocations: 96 / 347.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.1197, allocations: 0.5274 MB / 348.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1198, allocations: 136.7 kB / 348.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.1198, allocations: 8 kB / 348.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.1201, allocations: 23.92 kB / 348.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.1202, allocations: 19.97 kB / 348.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.1202, allocations: 12 kB / 348.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.1204, allocations: 202 kB / 348.5 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1204, allocations: 0 / 348.5 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.1208, allocations: 107.8 kB / 348.6 MB, free: 14.89 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.001084/0.1219, allocations: 1.076 MB / 349.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.1234, allocations: 0.5839 MB / 350.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1234, allocations: 0 / 350.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.1248, allocations: 454.3 kB / 350.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.1254, allocations: 96.56 kB / 350.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004535/0.1299, allocations: 3.638 MB / 354.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.1303, allocations: 0.7801 MB / 355.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.1304, allocations: 34.95 kB / 355.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1306, allocations: 103.4 kB / 355.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1306, allocations: 0 / 355.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.1542, allocations: 8.819 MB / 364.2 MB, free: 15.11 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.1545, allocations: 238.2 kB / 364.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.103, allocations: 4 kB / 364.4 MB, free: 14.84 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