Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001204, allocations: 58 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1176, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.006516/0.1241, allocations: 2.76 MB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1265, allocations: 0.8607 MB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002404/0.1268, allocations: 7.938 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003974/0.1273, allocations: 67.47 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005082/0.1278, allocations: 142.9 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.1282, allocations: 83.89 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007626/0.1289, allocations: 434.4 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002978/0.1293, allocations: 96.44 kB / 362 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.1296, allocations: 159.5 kB / 362.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003843/0.13, allocations: 183.2 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.1301, allocations: 35.94 kB / 362.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.1302, allocations: 36 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1304, allocations: 75.75 kB / 362.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.1307, allocations: 191.1 kB / 362.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.1311, allocations: 426.9 kB / 363.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1311, allocations: 11.92 kB / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1311, allocations: 4 kB / 363.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.1311, allocations: 0 / 363.1 MB, free: 8.465 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.001155/0.1323, allocations: 0.6794 MB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1323, allocations: 8.031 kB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.889e-05/0.1324, allocations: 71.19 kB / 363.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.891e-05/0.1325, allocations: 36.56 kB / 363.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/0.1329, allocations: 315.3 kB / 364.2 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.46e-05/0.133, allocations: 54.75 kB / 364.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.1331, allocations: 24.38 kB / 364.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.1336, allocations: 335.3 kB / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1336, allocations: 0 / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.1337, allocations: 12 kB / 364.6 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.964e-06/0.1337, allocations: 4 kB / 364.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.1341, allocations: 210.1 kB / 364.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.1356, allocations: 0.8265 MB / 365.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.1361, allocations: 271 kB / 365.9 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.1363, allocations: 116.8 kB / 366 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.1364, allocations: 4 kB / 366 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.1364, allocations: 42.59 kB / 366.1 MB, free: 5.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.943e-06/0.1364, allocations: 0 / 366.1 MB, free: 5.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001016/0.1374, allocations: 491.1 kB / 366.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.1376, allocations: 312.4 kB / 366.9 MB, free: 4.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.1379, allocations: 287 kB / 367.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.1379, allocations: 33.7 kB / 367.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1381, allocations: 172.6 kB / 367.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.718e-05/0.1381, allocations: 106.5 kB / 367.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1383, allocations: 69.69 kB / 367.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1384, allocations: 346.8 kB / 367.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.1386, allocations: 103.6 kB / 368 MB, free: 3.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.1389, allocations: 207.6 kB / 368.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.1393, allocations: 259.5 kB / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1394, allocations: 0 / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006174/0.14, allocations: 373.6 kB / 368.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.14, allocations: 29.7 kB / 368.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.14, allocations: 7.938 kB / 368.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001482/0.1402, allocations: 36.84 kB / 368.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009846/0.1412, allocations: 163.9 kB / 369 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1516/0.2928, allocations: 3.227 MB / 372.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.2932, allocations: 37.91 kB / 372.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.2932, allocations: 8.891 kB / 372.3 MB, free: 18.8 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.0001637/0.2934, allocations: 162.8 kB / 372.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.89e-05/0.2935, allocations: 35.34 kB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.399e-05/0.2936, allocations: 38.66 kB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2936, allocations: 3.344 kB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2936, allocations: 0 / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005575/0.2941, allocations: 0.6562 MB / 373.2 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000417/0.2946, allocations: 390 kB / 373.6 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2946, allocations: 3.75 kB / 373.6 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.2959, allocations: 207.6 kB / 373.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.909e-05/0.296, allocations: 22.27 kB / 373.8 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.296, allocations: 6.438 kB / 373.8 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.2984, allocations: 3.038 MB / 376.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.2984, allocations: 5.344 kB / 376.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007623/0.2992, allocations: 0.5053 MB / 377.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.2993, allocations: 137.4 kB / 377.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.736e-05/0.2994, allocations: 7.969 kB / 377.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.2997, allocations: 16.41 kB / 377.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.245e-05/0.2998, allocations: 26.27 kB / 377.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.2998, allocations: 11.05 kB / 377.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.3, allocations: 199.9 kB / 377.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3, allocations: 3.906 kB / 377.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004981/0.3005, allocations: 109.9 kB / 377.8 MB, free: 14.72 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.001015/0.3015, allocations: 1.06 MB / 378.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.3033, allocations: 0.5518 MB / 379.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.3033, allocations: 1.375 kB / 379.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/0.3047, allocations: 399.2 kB / 379.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006178/0.3054, allocations: 100.3 kB / 379.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/0.3098, allocations: 3.422 MB / 383.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.31, allocations: 0.7763 MB / 384.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.3102, allocations: 37.77 kB / 384.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3104, allocations: 104.8 kB / 384.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3104, allocations: 4 kB / 384.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.3418, allocations: 9.457 MB / 393.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.25, allocations: 12.17 kB / 393.8 MB, free: 7.508 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches