Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_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.001144/0.001144, allocations: 113.5 kB / 16.62 MB, free: 6.812 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.001125/0.001125, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 42.77 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08483, allocations: 49.44 MB / 349.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003745/0.08861, allocations: 2.799 MB / 352.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.08993, allocations: 0.8179 MB / 353.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.09019, allocations: 7.938 kB / 353.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.09049, allocations: 63.59 kB / 353.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003496/0.09087, allocations: 115.1 kB / 353.5 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.0911, allocations: 75.94 kB / 353.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000495/0.0916, allocations: 442.8 kB / 354 MB, free: 328 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.0918, allocations: 95.36 kB / 354.1 MB, free: 232 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.092, allocations: 159.4 kB / 354.2 MB, free: 72 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.09225, allocations: 171.3 kB / 354.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.361e-05/0.09232, allocations: 36 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.882e-05/0.09239, allocations: 40 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.518e-05/0.09247, allocations: 79.69 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.09265, allocations: 195.1 kB / 354.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003714/0.09302, allocations: 426.8 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.09304, allocations: 0 / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09304, allocations: 0 / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.09306, allocations: 0 / 355.2 MB, free: 15.14 MB / 302.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.001082/0.09415, allocations: 0.6911 MB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.09421, allocations: 8.031 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.96e-05/0.09432, allocations: 63.2 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.638e-05/0.09442, allocations: 40.56 kB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.09477, allocations: 303.3 kB / 356.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.264e-05/0.09487, allocations: 58.75 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.09493, allocations: 32.31 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.09545, allocations: 331.3 kB / 356.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.09547, allocations: 4 kB / 356.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.09551, allocations: 12 kB / 356.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.09552, allocations: 4 kB / 356.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.09594, allocations: 206.1 kB / 356.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.09729, allocations: 0.8265 MB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005197/0.09782, allocations: 271 kB / 358 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.09803, allocations: 124.8 kB / 358.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.09808, allocations: 4 kB / 358.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.09811, allocations: 42.56 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.09812, allocations: 3.938 kB / 358.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001018/0.09914, allocations: 487.2 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.09927, allocations: 316.4 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.09953, allocations: 279 kB / 359.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.09957, allocations: 33.7 kB / 359.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.09968, allocations: 176.6 kB / 359.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.576e-05/0.09976, allocations: 106.5 kB / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.09987, allocations: 61.7 kB / 359.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.09999, allocations: 350.7 kB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.1002, allocations: 87.95 kB / 360 MB, free: 9.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.1005, allocations: 220.6 kB / 360.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.1009, allocations: 267.5 kB / 360.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1009, allocations: 0 / 360.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006056/0.1015, allocations: 365.6 kB / 360.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.1016, allocations: 37.8 kB / 360.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1016, allocations: 0 / 360.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.1018, allocations: 40.83 kB / 360.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00099/0.1028, allocations: 163.7 kB / 361.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003375/0.1061, allocations: 3.236 MB / 364.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002963/0.1064, allocations: 35.88 kB / 364.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.1065, allocations: 12 kB / 364.4 MB, free: 5.215 MB / 302.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.0001613/0.1067, allocations: 145.8 kB / 364.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.972e-05/0.1067, allocations: 39.62 kB / 364.5 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.751e-05/0.1068, allocations: 35.08 kB / 364.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1068, allocations: 0 / 364.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1068, allocations: 3.938 kB / 364.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005995/0.1074, allocations: 0.6593 MB / 365.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004116/0.1079, allocations: 397.2 kB / 365.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1079, allocations: 0 / 365.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.1091, allocations: 199.8 kB / 365.8 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.922e-05/0.1092, allocations: 28.78 kB / 365.8 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.1093, allocations: 4 kB / 365.8 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002899/0.1122, allocations: 3.053 MB / 368.9 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1122, allocations: 0 / 368.9 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1451/0.2573, allocations: 0.5028 MB / 369.4 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.2575, allocations: 136.6 kB / 369.5 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.2576, allocations: 7.609 kB / 369.5 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.2579, allocations: 20.47 kB / 369.6 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.258, allocations: 27.19 kB / 369.6 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.2581, allocations: 6.453 kB / 369.6 MB, free: 25.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000249/0.2583, allocations: 201.8 kB / 369.8 MB, free: 25.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2583, allocations: 1.125 kB / 369.8 MB, free: 25.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000467/0.2588, allocations: 106 kB / 369.9 MB, free: 25.32 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.0009913/0.2598, allocations: 1.058 MB / 371 MB, free: 24.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.2614, allocations: 0.5466 MB / 371.5 MB, free: 24.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2614, allocations: 6.266 kB / 371.5 MB, free: 24.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.2629, allocations: 402.6 kB / 371.9 MB, free: 24.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006196/0.2635, allocations: 92.48 kB / 372 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/0.2679, allocations: 3.528 MB / 375.5 MB, free: 22.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.2682, allocations: 0.776 MB / 376.3 MB, free: 21.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.2684, allocations: 39.66 kB / 376.3 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.2685, allocations: 103.8 kB / 376.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2685, allocations: 1.375 kB / 376.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02702/0.2956, allocations: 9.302 MB / 385.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/0.2958, allocations: 234 kB / 386 MB, free: 18.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.358, allocations: 0 / 386 MB, free: 18.89 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches