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.001167/0.001167, allocations: 114.2 kB / 17.07 MB, free: 5.988 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.001146/0.001146, allocations: 195 kB / 18 MB, free: 5.074 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 52.02 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2407, allocations: 49.43 MB / 400.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003519/0.2443, allocations: 2.761 MB / 403 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.2455, allocations: 0.8333 MB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.2457, allocations: 0 / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002513/0.2459, allocations: 75.41 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.2462, allocations: 134.9 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002003/0.2464, allocations: 91.81 kB / 404.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004297/0.2469, allocations: 436.3 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.2471, allocations: 103.3 kB / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.2472, allocations: 163.4 kB / 404.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.2474, allocations: 175.3 kB / 405 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.2475, allocations: 32 kB / 405 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.557e-05/0.2475, allocations: 36 kB / 405 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.851e-05/0.2476, allocations: 75.69 kB / 405.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2478, allocations: 195.1 kB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004218/0.2482, allocations: 445.2 kB / 405.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2482, allocations: 0 / 405.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2482, allocations: 4 kB / 405.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2483, allocations: 0 / 405.7 MB, free: 3.293 MB / 318.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.001027/0.2493, allocations: 0.6871 MB / 406.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.2493, allocations: 8.031 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.996e-05/0.2494, allocations: 71.23 kB / 406.5 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.967e-05/0.2495, allocations: 44.7 kB / 406.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.2499, allocations: 311.6 kB / 406.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.39e-05/0.25, allocations: 50.81 kB / 406.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.2501, allocations: 28.36 kB / 406.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.2506, allocations: 335.3 kB / 407.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2506, allocations: 0 / 407.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.2506, allocations: 12 kB / 407.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2507, allocations: 4 kB / 407.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004244/0.2511, allocations: 210.1 kB / 407.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.2524, allocations: 0.8227 MB / 408.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.253, allocations: 275 kB / 408.6 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.2532, allocations: 120.8 kB / 408.7 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.2533, allocations: 11.98 kB / 408.7 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.2533, allocations: 42.59 kB / 408.7 MB, free: 72 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.553e-06/0.2533, allocations: 3.938 kB / 408.7 MB, free: 68 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001018/0.2543, allocations: 475.3 kB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.2545, allocations: 324.4 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.2548, allocations: 275 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.2548, allocations: 33.7 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.2549, allocations: 176.8 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.301e-05/0.255, allocations: 107 kB / 410.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.2551, allocations: 69.69 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.2552, allocations: 346.7 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.2555, allocations: 95.89 kB / 410.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.2558, allocations: 217 kB / 410.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004377/0.2562, allocations: 267.5 kB / 411.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2562, allocations: 0 / 411.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000633/0.2569, allocations: 365.8 kB / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.2569, allocations: 37.78 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2569, allocations: 7.938 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.2571, allocations: 44.84 kB / 411.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.2581, allocations: 159.8 kB / 411.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003583/0.2617, allocations: 3.229 MB / 414.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.262, allocations: 31.88 kB / 414.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.2621, allocations: 12 kB / 414.9 MB, free: 9.359 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.0001918/0.2623, allocations: 157.7 kB / 415.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.2624, allocations: 31.81 kB / 415.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.972e-05/0.2625, allocations: 43.27 kB / 415.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.2625, allocations: 4 kB / 415.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2625, allocations: 7.938 kB / 415.2 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007278/0.2632, allocations: 0.651 MB / 415.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004393/0.2637, allocations: 385.3 kB / 416.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.2637, allocations: 0 / 416.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.2649, allocations: 211.7 kB / 416.4 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-05/0.265, allocations: 24.84 kB / 416.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.2651, allocations: 4 kB / 416.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003078/0.2681, allocations: 3.045 MB / 419.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2682, allocations: 0 / 419.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008815/0.2691, allocations: 0.512 MB / 420 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.2692, allocations: 136.9 kB / 420.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.2693, allocations: 8 kB / 420.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.2696, allocations: 23.98 kB / 420.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.358e-05/0.2697, allocations: 23.97 kB / 420.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.2697, allocations: 8 kB / 420.2 MB, free: 3.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.2699, allocations: 202 kB / 420.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.2699, allocations: 96 / 420.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004345/0.2704, allocations: 115.8 kB / 420.5 MB, free: 3.305 MB / 334.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.001149/0.2715, allocations: 1.068 MB / 421.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.2731, allocations: 0.5412 MB / 422.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.2731, allocations: 0 / 422.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.2745, allocations: 410.8 kB / 422.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.2751, allocations: 84.83 kB / 422.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004719/0.2799, allocations: 3.41 MB / 426 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.2802, allocations: 0.7723 MB / 426.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001558/0.2804, allocations: 38.95 kB / 426.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.2805, allocations: 103.4 kB / 426.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of SimCode: time 1.403e-06/0.2806, allocations: 0 / 426.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04496/0.3255, allocations: 9.607 MB / 436.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.03, allocations: 12.44 kB / 436.5 MB, free: 3.301 MB / 350.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches