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.001231/0.001231, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2508, allocations: 50.54 MB / 408.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004043/0.2549, allocations: 2.763 MB / 411.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.2567, allocations: 0.8567 MB / 412.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002435/0.2569, allocations: 4 kB / 412.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.2573, allocations: 75.41 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003083/0.2576, allocations: 130.9 kB / 412.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.2578, allocations: 87.81 kB / 412.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005338/0.2584, allocations: 442.3 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.2586, allocations: 95.34 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.2588, allocations: 167.4 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.259, allocations: 167.3 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.732e-05/0.2591, allocations: 43.92 kB / 413.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.586e-05/0.2592, allocations: 36 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.2593, allocations: 79.69 kB / 413.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.2595, allocations: 199.1 kB / 413.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.26, allocations: 438.2 kB / 414.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.26, allocations: 0 / 414.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.26, allocations: 0 / 414.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.26, allocations: 0 / 414.3 MB, free: 12.14 MB / 334.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.001157/0.2612, allocations: 0.6871 MB / 415 MB, free: 11.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2612, allocations: 12.03 kB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.959e-05/0.2613, allocations: 63.25 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.835e-05/0.2614, allocations: 48.66 kB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/0.2619, allocations: 311.6 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.262, allocations: 50.81 kB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.363e-05/0.2621, allocations: 32.33 kB / 415.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005625/0.2627, allocations: 331.3 kB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.2627, allocations: 4 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.2627, allocations: 12 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2628, allocations: 4 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004422/0.2632, allocations: 206.1 kB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.2647, allocations: 0.8227 MB / 416.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.2652, allocations: 270.8 kB / 417.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.2655, allocations: 128.8 kB / 417.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.2655, allocations: 8.062 kB / 417.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.2656, allocations: 42.5 kB / 417.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.332e-06/0.2656, allocations: 0 / 417.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001069/0.2666, allocations: 491.3 kB / 417.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/0.2668, allocations: 320.4 kB / 418.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.2672, allocations: 279 kB / 418.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.2672, allocations: 33.7 kB / 418.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.2674, allocations: 180.7 kB / 418.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-05/0.2675, allocations: 111 kB / 418.7 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.2676, allocations: 69.7 kB / 418.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.2678, allocations: 346.7 kB / 419.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.268, allocations: 91.95 kB / 419.2 MB, free: 6.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.2683, allocations: 208.2 kB / 419.4 MB, free: 6.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/0.2688, allocations: 264.1 kB / 419.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2688, allocations: 0 / 419.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006381/0.2694, allocations: 369.8 kB / 420 MB, free: 6.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.2695, allocations: 29.7 kB / 420 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.2695, allocations: 7.984 kB / 420 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000158/0.2697, allocations: 44.84 kB / 420.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.2707, allocations: 155.9 kB / 420.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004043/0.2747, allocations: 3.229 MB / 423.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000405/0.2752, allocations: 31.88 kB / 423.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/0.2752, allocations: 12 kB / 423.5 MB, free: 2.207 MB / 334.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.0002059/0.2754, allocations: 153.8 kB / 423.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.431e-05/0.2755, allocations: 35.98 kB / 423.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.439e-05/0.2756, allocations: 35.09 kB / 423.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.2756, allocations: 7.984 kB / 423.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2756, allocations: 7.938 kB / 423.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000752/0.2764, allocations: 0.6501 MB / 424.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.2769, allocations: 401.2 kB / 424.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.2769, allocations: 0 / 424.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.2782, allocations: 211.7 kB / 425 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.578e-05/0.2783, allocations: 24.84 kB / 425 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.2783, allocations: 4 kB / 425 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003393/0.2817, allocations: 3.042 MB / 428 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2817, allocations: 3.938 kB / 428 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008719/0.2826, allocations: 0.5092 MB / 428.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.2828, allocations: 136.8 kB / 428.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.2829, allocations: 11.98 kB / 428.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.2831, allocations: 23.95 kB / 428.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.2832, allocations: 27.91 kB / 428.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.2832, allocations: 8 kB / 428.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.2835, allocations: 198 kB / 429 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2835, allocations: 7.938 kB / 429 MB, free: 12.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.2839, allocations: 111.9 kB / 429.1 MB, free: 12.14 MB / 350.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.001218/0.2851, allocations: 1.057 MB / 430.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.2867, allocations: 0.5334 MB / 430.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2867, allocations: 4 kB / 430.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.2882, allocations: 398.3 kB / 431.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.2887, allocations: 84.55 kB / 431.1 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004908/0.2937, allocations: 3.413 MB / 434.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004493/0.2941, allocations: 0.7876 MB / 435.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.2943, allocations: 42.95 kB / 435.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.2945, allocations: 103.4 kB / 435.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2945, allocations: 0 / 435.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.3327, allocations: 9.62 MB / 445.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.32, allocations: 3.953 kB / 445.1 MB, free: 12.12 MB / 366.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.1.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