Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001314/0.001314, allocations: 113.8 kB / 17.06 MB, free: 5.996 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.001222/0.001222, allocations: 193.4 kB / 18.01 MB, free: 5.07 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 43.94 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2764, allocations: 49.43 MB / 400.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004644/0.2811, allocations: 2.854 MB / 403.1 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.2835, allocations: 1.266 MB / 404.3 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002825/0.2838, allocations: 7.938 kB / 404.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005853/0.2844, allocations: 179.1 kB / 404.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005139/0.2849, allocations: 202.8 kB / 404.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.2855, allocations: 167.5 kB / 404.9 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005675/0.2861, allocations: 460.3 kB / 405.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.2863, allocations: 107.5 kB / 405.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.2865, allocations: 179.3 kB / 405.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.2869, allocations: 203.2 kB / 405.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.694e-05/0.2869, allocations: 35.98 kB / 405.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.2871, allocations: 63.98 kB / 405.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.2872, allocations: 87.62 kB / 406 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.2875, allocations: 199 kB / 406.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006144/0.2881, allocations: 485.9 kB / 406.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2881, allocations: 0 / 406.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2881, allocations: 0 / 406.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2881, allocations: 4 kB / 406.7 MB, free: 2.523 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001104/0.2892, allocations: 0.712 MB / 407.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.2893, allocations: 11.89 kB / 407.4 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.2894, allocations: 63.17 kB / 407.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.29e-05/0.2895, allocations: 48.66 kB / 407.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005417/0.29, allocations: 350.9 kB / 407.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.2901, allocations: 12.81 kB / 407.9 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.2901, allocations: 23.94 kB / 407.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.2907, allocations: 305.4 kB / 408.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.2907, allocations: 3.984 kB / 408.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.2907, allocations: 8 kB / 408.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2907, allocations: 7.938 kB / 408.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.2911, allocations: 149.7 kB / 408.3 MB, free: 0.7109 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001413/0.2925, allocations: 0.8364 MB / 409.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/0.2929, allocations: 188.8 kB / 409.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.2931, allocations: 76.83 kB / 409.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.2931, allocations: 7.938 kB / 409.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.2934, allocations: 127.3 kB / 409.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.063e-06/0.2935, allocations: 0 / 409.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001047/0.2945, allocations: 416.7 kB / 410 MB, free: 14.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002085/0.2947, allocations: 320.4 kB / 410.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005234/0.2953, allocations: 425.7 kB / 410.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.2953, allocations: 33.7 kB / 410.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.2955, allocations: 208.4 kB / 410.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.567e-05/0.2956, allocations: 83.17 kB / 411 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.2957, allocations: 61.64 kB / 411.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2959, allocations: 350.8 kB / 411.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.2961, allocations: 63.97 kB / 411.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/0.2964, allocations: 179.9 kB / 411.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003355/0.2967, allocations: 171.3 kB / 411.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.2967, allocations: 4 kB / 411.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005389/0.2973, allocations: 274.1 kB / 412.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.2973, allocations: 4 kB / 412.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.2973, allocations: 8.094 kB / 412.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.2975, allocations: 32.84 kB / 412.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.2977, allocations: 55.91 kB / 412.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.2995, allocations: 1.57 MB / 413.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.2998, allocations: 23.92 kB / 413.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.2998, allocations: 12 kB / 413.8 MB, free: 10.8 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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000263/0.3001, allocations: 165.8 kB / 414 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.807e-05/0.3002, allocations: 51.66 kB / 414 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.549e-05/0.3003, allocations: 43.53 kB / 414.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3003, allocations: 4 kB / 414.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3003, allocations: 0 / 414.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006375/0.3009, allocations: 0.5827 MB / 414.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.302, allocations: 0.699 MB / 415.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.302, allocations: 0 / 415.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.3023, allocations: 47.91 kB / 415.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3023, allocations: 8 kB / 415.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.3023, allocations: 4 kB / 415.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.3023, allocations: 0 / 415.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3023, allocations: 0 / 415.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006736/0.303, allocations: 402.9 kB / 415.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.3032, allocations: 144.8 kB / 415.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.3032, allocations: 8 kB / 416 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.3034, allocations: 16.05 kB / 416 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.3035, allocations: 11.98 kB / 416 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.3035, allocations: 4 kB / 416 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003546/0.3039, allocations: 319.1 kB / 416.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.396e-06/0.3039, allocations: 0 / 416.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004186/0.3043, allocations: 95.83 kB / 416.4 MB, free: 8.012 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002417/0.3067, allocations: 1.277 MB / 417.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007219/0.3075, allocations: 302.5 kB / 418 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3075, allocations: 0 / 418 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.3077, allocations: 90.34 kB / 418 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005983/0.3083, allocations: 102.2 kB / 418.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004691/0.313, allocations: 3.368 MB / 421.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.3135, allocations: 0.7999 MB / 422.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.3137, allocations: 42.95 kB / 422.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.3139, allocations: 123.4 kB / 422.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3139, allocations: 0 / 422.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03813/0.3521, allocations: 10.17 MB / 432.7 MB, free: 8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.35, allocations: 3.656 kB / 432.7 MB, free: 8 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_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_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches