Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001495/0.001495, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001886/0.001886, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001218, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2186, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01455/0.2332, allocations: 13.01 MB / 421.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.2453, allocations: 11.54 MB / 433.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.935e-05/0.2455, allocations: 0 / 433.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.2458, allocations: 67.61 kB / 433.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002685/0.2461, allocations: 87.38 kB / 433.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.2579, allocations: 5.085 MB / 438.5 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003259/0.2582, allocations: 227 kB / 438.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.46e-05/0.2583, allocations: 25.42 kB / 438.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.2587, allocations: 191.3 kB / 438.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.2588, allocations: 75.69 kB / 439 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.2588, allocations: 8 kB / 439 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01186/0.2707, allocations: 6.993 MB / 446 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.321e-05/0.2708, allocations: 31.89 kB / 446.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.2709, allocations: 63.73 kB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007811/0.2788, allocations: 3.886 MB / 450 MB, free: 8.145 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.2788, allocations: 4 kB / 450 MB, free: 8.141 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2788, allocations: 0 / 450 MB, free: 8.141 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.2788, allocations: 3.938 kB / 450 MB, free: 8.137 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004895/0.2837, allocations: 1.175 MB / 451.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.2838, allocations: 12.03 kB / 451.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.464e-05/0.2839, allocations: 46.73 kB / 451.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005054/0.2844, allocations: 48.84 kB / 451.3 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.2847, allocations: 228.1 kB / 451.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.2848, allocations: 12.66 kB / 451.5 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.413e-05/0.2848, allocations: 16.12 kB / 451.5 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.2862, allocations: 384.9 kB / 451.9 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.2862, allocations: 0 / 451.9 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/0.2862, allocations: 11.94 kB / 451.9 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2862, allocations: 4 kB / 451.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.2877, allocations: 359.5 kB / 452.3 MB, free: 5.734 MB / 366.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.001394/0.2891, allocations: 1.184 MB / 453.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008827/0.29, allocations: 284.8 kB / 453.7 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.2903, allocations: 114.9 kB / 453.9 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1033/0.3937, allocations: 52.8 MB / 0.4948 GB, free: 8.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.3937, allocations: 42.5 kB / 0.4948 GB, free: 8.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.114e-06/0.3938, allocations: 0 / 0.4948 GB, free: 8.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.00703/0.4008, allocations: 1.583 MB / 0.4964 GB, free: 6.883 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.4009, allocations: 106.8 kB / 0.4965 GB, free: 6.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.876e-05/0.401, allocations: 117.8 kB / 0.4966 GB, free: 6.629 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.401, allocations: 33.7 kB / 0.4966 GB, free: 6.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.4011, allocations: 108.6 kB / 0.4967 GB, free: 6.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.41e-05/0.4012, allocations: 126.9 kB / 0.4968 GB, free: 6.355 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.4013, allocations: 65.69 kB / 0.4969 GB, free: 6.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4014, allocations: 330.8 kB / 0.4972 GB, free: 5.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004137/0.4019, allocations: 135.7 kB / 0.4974 GB, free: 5.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.4023, allocations: 199.1 kB / 0.4975 GB, free: 5.602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008009/0.4031, allocations: 350.5 kB / 0.4979 GB, free: 5.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4031, allocations: 0 / 0.4979 GB, free: 5.234 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001109/0.4042, allocations: 430 kB / 0.4983 GB, free: 4.805 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4043, allocations: 7.938 kB / 0.4983 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4043, allocations: 4 kB / 0.4983 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000241/0.4045, allocations: 36.83 kB / 0.4983 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004758/0.405, allocations: 95.81 kB / 0.4984 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003726/0.4054, allocations: 0.5447 MB / 0.499 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/0.4057, allocations: 19.97 kB / 0.499 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.4058, allocations: 16 kB / 0.499 GB, free: 4.055 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001633/0.4059, allocations: 141.7 kB / 0.4991 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.4061, allocations: 20 kB / 0.4991 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/0.4082, allocations: 1.447 MB / 0.5006 GB, free: 2.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.32e-05/0.4083, allocations: 15.97 kB / 0.5006 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4083, allocations: 4 kB / 0.5006 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.4083, allocations: 0 / 0.5006 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002922/0.4112, allocations: 1.979 MB / 0.5025 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4113, allocations: 4 kB / 0.5025 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.4117, allocations: 79.88 kB / 0.5026 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.4121, allocations: 72.91 kB / 0.5027 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.4121, allocations: 12 kB / 0.5027 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003735/0.4125, allocations: 0.5874 MB / 0.5032 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.4125, allocations: 8.016 kB / 0.5032 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.4147, allocations: 1.69 MB / 0.5049 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.942e-05/0.4148, allocations: 128.7 kB / 0.505 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.4148, allocations: 15.98 kB / 0.505 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.4152, allocations: 27.92 kB / 0.5051 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.424e-05/0.4153, allocations: 27.95 kB / 0.5051 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/0.4153, allocations: 19.98 kB / 0.5051 GB, free: 13.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.019e-05/0.4154, allocations: 87.28 kB / 0.5052 GB, free: 13.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.4154, allocations: 0 / 0.5052 GB, free: 13.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002443/0.4178, allocations: 0.9785 MB / 0.5061 GB, free: 12.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006734/0.4246, allocations: 3.281 MB / 0.5094 GB, free: 9.215 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.426, allocations: 0.6118 MB / 0.51 GB, free: 8.602 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.4261, allocations: 4 kB / 0.51 GB, free: 8.598 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008046/0.4269, allocations: 0.513 MB / 0.5105 GB, free: 8.082 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000785/0.4277, allocations: 80.03 kB / 0.5105 GB, free: 8.004 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007098/0.4348, allocations: 3.912 MB / 0.5144 GB, free: 3.938 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.4352, allocations: 0.8178 MB / 0.5152 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003703/0.4356, allocations: 141.7 kB / 0.5153 GB, free: 2.949 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.4358, allocations: 135.3 kB / 0.5154 GB, free: 2.816 MB / 446.1 MB Notification: Performance of SimCode: time 1.853e-06/0.4358, allocations: 0 / 0.5154 GB, free: 2.816 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2396/0.6755, allocations: 40.62 MB / 0.5551 GB, free: 112.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.07, allocations: 4.062 kB / 0.5551 GB, free: 112.4 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches