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.001656/0.001656, allocations: 113.7 kB / 17.06 MB, free: 5.965 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.001796/0.001796, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.418/1.418, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2457, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004226/0.25, allocations: 2.763 MB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.2515, allocations: 0.8294 MB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.2516, allocations: 4 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.252, allocations: 75.41 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003232/0.2523, allocations: 126.9 kB / 404 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.2526, allocations: 91.81 kB / 404.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005461/0.2531, allocations: 438.3 kB / 404.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.2533, allocations: 99.3 kB / 404.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.2535, allocations: 163.4 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.2538, allocations: 179.3 kB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.477e-05/0.2539, allocations: 36 kB / 405 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.785e-05/0.2539, allocations: 36 kB / 405 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-05/0.254, allocations: 75.7 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.2542, allocations: 187.2 kB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.2547, allocations: 449.1 kB / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2548, allocations: 0 / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2548, allocations: 0 / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2548, allocations: 0 / 405.7 MB, free: 3.281 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.001141/0.2559, allocations: 0.6871 MB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.256, allocations: 8.031 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.2561, allocations: 67.25 kB / 406.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.699e-05/0.2562, allocations: 44.7 kB / 406.5 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004948/0.2567, allocations: 307.6 kB / 406.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2568, allocations: 62.75 kB / 406.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.566e-05/0.2569, allocations: 20.38 kB / 406.9 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005813/0.2575, allocations: 335.3 kB / 407.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.2575, allocations: 4 kB / 407.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.2575, allocations: 8 kB / 407.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2575, allocations: 8 kB / 407.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.258, allocations: 210.1 kB / 407.5 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.2595, allocations: 0.8227 MB / 408.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005843/0.2601, allocations: 275 kB / 408.6 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002501/0.2603, allocations: 116.9 kB / 408.7 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.2604, allocations: 15.97 kB / 408.7 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.2604, allocations: 38.56 kB / 408.7 MB, free: 68 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.2604, allocations: 0 / 408.7 MB, free: 68 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001117/0.2616, allocations: 487.4 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/0.2618, allocations: 312.4 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.2621, allocations: 283 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.2621, allocations: 33.7 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.2623, allocations: 172.8 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.132e-05/0.2624, allocations: 111 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.2625, allocations: 73.69 kB / 410.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2627, allocations: 342.7 kB / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.2629, allocations: 95.95 kB / 410.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.2632, allocations: 212.9 kB / 410.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004803/0.2637, allocations: 267.5 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2637, allocations: 4.094 kB / 411.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006812/0.2644, allocations: 373.7 kB / 411.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/0.2645, allocations: 36.34 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2645, allocations: 0 / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/0.2646, allocations: 40.84 kB / 411.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.2657, allocations: 163.9 kB / 411.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003973/0.2696, allocations: 3.224 MB / 414.9 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.27, allocations: 39.88 kB / 414.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.27, allocations: 12.19 kB / 414.9 MB, free: 9.348 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.0001928/0.2702, allocations: 153.7 kB / 415.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-05/0.2703, allocations: 39.8 kB / 415.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.434e-05/0.2704, allocations: 43.08 kB / 415.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2704, allocations: 0 / 415.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.2704, allocations: 8.031 kB / 415.2 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007341/0.2711, allocations: 0.6549 MB / 415.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/0.2716, allocations: 393.3 kB / 416.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2716, allocations: 0 / 416.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/0.2729, allocations: 199.8 kB / 416.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.586e-05/0.273, allocations: 28.78 kB / 416.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.273, allocations: 8 kB / 416.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00342/0.2764, allocations: 3.033 MB / 419.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2765, allocations: 0 / 419.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000893/0.2774, allocations: 0.5159 MB / 420 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.2775, allocations: 140.9 kB / 420.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.2776, allocations: 4 kB / 420.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.2779, allocations: 27.92 kB / 420.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.768e-05/0.2779, allocations: 19.97 kB / 420.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.278, allocations: 12 kB / 420.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.2782, allocations: 198 kB / 420.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.2782, allocations: 4 kB / 420.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004355/0.2787, allocations: 111.8 kB / 420.5 MB, free: 3.293 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.001298/0.28, allocations: 1.07 MB / 421.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.2815, allocations: 0.5334 MB / 422.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.2816, allocations: 4 kB / 422.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.283, allocations: 410.8 kB / 422.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.2835, allocations: 99.78 kB / 422.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005052/0.2886, allocations: 3.397 MB / 426 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.289, allocations: 0.7762 MB / 426.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.2892, allocations: 38.95 kB / 426.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.2894, allocations: 99.41 kB / 426.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.324e-06/0.2894, allocations: 4 kB / 426.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03912/0.3285, allocations: 9.604 MB / 436.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.41, allocations: 15.28 kB / 436.5 MB, free: 3.285 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