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.001086/0.001086, allocations: 102.9 kB / 17.16 MB, free: 6.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.0009439/0.0009439, allocations: 190 kB / 18.07 MB, free: 5.414 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.459/1.459, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001142/0.001143, allocations: 56.33 kB / 280.1 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003982/0.1099, allocations: 2.798 MB / 329.5 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.1115, allocations: 0.8578 MB / 330.3 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.1117, allocations: 8 kB / 330.3 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003417/0.1121, allocations: 59.61 kB / 330.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003191/0.1124, allocations: 127 kB / 330.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.1127, allocations: 67.94 kB / 330.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004691/0.1132, allocations: 434.3 kB / 331 MB, free: 432 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.1134, allocations: 83.36 kB / 331.1 MB, free: 348 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001595/0.1135, allocations: 143.5 kB / 331.2 MB, free: 204 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.1138, allocations: 167.2 kB / 331.4 MB, free: 36 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.191e-05/0.1138, allocations: 24 kB / 331.4 MB, free: 12 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.998e-05/0.1139, allocations: 24.05 kB / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.1141, allocations: 71.64 kB / 331.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1142, allocations: 183.1 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.1146, allocations: 414.8 kB / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.1146, allocations: 4 kB / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1146, allocations: 0 / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1147, allocations: 0 / 332.1 MB, free: 15.33 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.001081/0.1157, allocations: 0.6795 MB / 332.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1158, allocations: 8.031 kB / 332.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.1159, allocations: 71.19 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/0.116, allocations: 40.47 kB / 332.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.1163, allocations: 307.4 kB / 333.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-05/0.1164, allocations: 46.83 kB / 333.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.22e-05/0.1165, allocations: 28.28 kB / 333.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.1171, allocations: 339.2 kB / 333.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1171, allocations: 0 / 333.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.1171, allocations: 12 kB / 333.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.1171, allocations: 8 kB / 333.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004339/0.1176, allocations: 214.1 kB / 333.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.1191, allocations: 0.8304 MB / 334.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.1196, allocations: 275 kB / 334.9 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.1198, allocations: 116.8 kB / 335.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.1199, allocations: 4 kB / 335.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1199, allocations: 38.56 kB / 335.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 3.326e-06/0.1199, allocations: 4 kB / 335.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001014/0.1209, allocations: 479.9 kB / 335.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.1211, allocations: 320.4 kB / 335.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000304/0.1214, allocations: 279 kB / 336.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.1215, allocations: 33.7 kB / 336.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.1216, allocations: 176.6 kB / 336.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.309e-05/0.1217, allocations: 102.5 kB / 336.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.1219, allocations: 73.59 kB / 336.5 MB, free: 10.55 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.1221, allocations: 338.8 kB / 336.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.1223, allocations: 95.89 kB / 337 MB, free: 10.12 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003204/0.1226, allocations: 215.7 kB / 337.2 MB, free: 9.863 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004762/0.1231, allocations: 270.7 kB / 337.4 MB, free: 9.582 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1231, allocations: 4 kB / 337.4 MB, free: 9.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006293/0.1238, allocations: 364.7 kB / 337.8 MB, free: 9.207 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.1238, allocations: 33.7 kB / 337.8 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1238, allocations: 0 / 337.8 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.124, allocations: 40.94 kB / 337.9 MB, free: 9.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.125, allocations: 163.8 kB / 338 MB, free: 8.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.1284, allocations: 2.992 MB / 341 MB, free: 5.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.1287, allocations: 39.78 kB / 341.1 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/0.1287, allocations: 8 kB / 341.1 MB, free: 5.668 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.0001796/0.1289, allocations: 161.6 kB / 341.2 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.225e-05/0.129, allocations: 39.56 kB / 341.3 MB, free: 5.461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.1291, allocations: 39.08 kB / 341.3 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1291, allocations: 0 / 341.3 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.1291, allocations: 7.938 kB / 341.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006445/0.1297, allocations: 0.6543 MB / 342 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004041/0.1301, allocations: 393.2 kB / 342.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1302, allocations: 4 kB / 342.3 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.1314, allocations: 203.7 kB / 342.5 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.851e-05/0.1315, allocations: 28.84 kB / 342.6 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.1315, allocations: 8 kB / 342.6 MB, free: 3.977 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002811/0.1343, allocations: 2.824 MB / 345.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1343, allocations: 8.094 kB / 345.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007598/0.1351, allocations: 0.5039 MB / 345.9 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.1353, allocations: 140.7 kB / 346.1 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.1353, allocations: 12 kB / 346.1 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.1356, allocations: 23.92 kB / 346.1 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.1356, allocations: 19.97 kB / 346.1 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.1357, allocations: 15.98 kB / 346.1 MB, free: 128 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001951/0.1359, allocations: 198 kB / 346.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1359, allocations: 0 / 346.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004044/0.1363, allocations: 107.8 kB / 346.4 MB, free: 15.83 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.001131/0.1374, allocations: 1.065 MB / 347.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.1389, allocations: 0.5215 MB / 348 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.139, allocations: 4 kB / 348 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.1403, allocations: 406.2 kB / 348.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.1409, allocations: 91.48 kB / 348.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004617/0.1456, allocations: 3.519 MB / 352 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.1459, allocations: 0.7762 MB / 352.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.1461, allocations: 38.95 kB / 352.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.1462, allocations: 107.4 kB / 352.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1462, allocations: 0 / 352.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.1696, allocations: 8.93 MB / 361.9 MB, free: 148 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002699/0.1699, allocations: 231 kB / 362.1 MB, free: 15.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.111, allocations: 0 / 362.1 MB, free: 15.89 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