Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater",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.00116/0.00116, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001412/0.001412, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.085/0.0862, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.0057/0.09194, allocations: 4.491 MB / 379.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1828/0.2748, allocations: 1.811 MB / 380.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.275, allocations: 0 / 380.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.2754, allocations: 41.78 kB / 381 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004128/0.2759, allocations: 122.4 kB / 381.1 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007329/0.2766, allocations: 251.9 kB / 381.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003774/0.277, allocations: 287.1 kB / 381.6 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.823e-05/0.2771, allocations: 15.23 kB / 381.6 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.2773, allocations: 132.3 kB / 381.8 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.2775, allocations: 78.72 kB / 381.8 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.2775, allocations: 9.625 kB / 381.8 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002848/0.2778, allocations: 96.55 kB / 381.9 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.958e-05/0.2779, allocations: 36.09 kB / 382 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.941e-05/0.278, allocations: 79.62 kB / 382 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004442/0.2785, allocations: 209.8 kB / 382.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.2785, allocations: 6.469 kB / 382.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2785, allocations: 0 / 382.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.2785, allocations: 0.5312 kB / 382.3 MB, free: 9.035 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009879/0.2795, allocations: 0.4891 MB / 382.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.2795, allocations: 10 kB / 382.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.2796, allocations: 54 kB / 382.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.2798, allocations: 19 kB / 382.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.2801, allocations: 205.5 kB / 383 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.2801, allocations: 13.47 kB / 383 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.2801, allocations: 12.03 kB / 383.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004796/0.2806, allocations: 214.5 kB / 383.3 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2807, allocations: 5.156 kB / 383.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.2807, allocations: 9.156 kB / 383.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2807, allocations: 3.906 kB / 383.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003762/0.2811, allocations: 149.8 kB / 383.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.2823, allocations: 0.9474 MB / 384.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004058/0.2827, allocations: 149.1 kB / 384.5 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.2829, allocations: 64.23 kB / 384.6 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004901/0.2833, allocations: 0.5084 MB / 385.1 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.2834, allocations: 31.72 kB / 385.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.2834, allocations: 2.156 kB / 385.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.002652/0.286, allocations: 0.7724 MB / 385.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.2861, allocations: 53.91 kB / 386 MB, free: 6.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.2862, allocations: 154 kB / 386.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2863, allocations: 30.86 kB / 386.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.2863, allocations: 148.2 kB / 386.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.2e-05/0.2864, allocations: 75.16 kB / 386.4 MB, free: 6.301 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.2865, allocations: 60.48 kB / 386.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.027e-05/0.2865, allocations: 326 kB / 386.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.2868, allocations: 85.8 kB / 386.8 MB, free: 5.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/0.2871, allocations: 188.2 kB / 387 MB, free: 5.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.2877, allocations: 300.3 kB / 387.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2877, allocations: 0 / 387.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006959/0.2884, allocations: 320.1 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.2884, allocations: 6.453 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.2884, allocations: 4.094 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.2884, allocations: 5.531 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003886/0.2888, allocations: 83.86 kB / 387.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.2889, allocations: 11.05 kB / 387.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.2891, allocations: 19.88 kB / 387.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.2892, allocations: 17.36 kB / 387.7 MB, free: 5.602 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.2893, allocations: 138 kB / 387.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.397e-05/0.2893, allocations: 16.12 kB / 387.9 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006785/0.29, allocations: 246.1 kB / 388.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.29, allocations: 2.188 kB / 388.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.29, allocations: 1.125 kB / 388.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2901, allocations: 5.297 kB / 388.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.2913, allocations: 0.5964 MB / 388.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2913, allocations: 2.5 kB / 388.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.2916, allocations: 52.12 kB / 388.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.2916, allocations: 1.219 kB / 388.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.2917, allocations: 13.09 kB / 388.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.2917, allocations: 6.438 kB / 388.8 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.2917, allocations: 1.312 kB / 388.8 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000823/0.2925, allocations: 398.3 kB / 389.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.34e-05/0.2926, allocations: 94.12 kB / 389.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.385e-05/0.2926, allocations: 11.38 kB / 389.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.2929, allocations: 18.59 kB / 389.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.2929, allocations: 13.7 kB / 389.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.2929, allocations: 9.781 kB / 389.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.307e-05/0.293, allocations: 109.9 kB / 389.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.293, allocations: 0 / 389.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004146/0.2934, allocations: 62.86 kB / 389.5 MB, free: 4.684 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.001185/0.2946, allocations: 0.9606 MB / 390.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006463/0.2953, allocations: 218.4 kB / 390.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2953, allocations: 8.812 kB / 390.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.2956, allocations: 94.98 kB / 390.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.296, allocations: 33.44 kB / 390.8 MB, free: 3.812 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/0.2993, allocations: 2.377 MB / 393.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.2994, allocations: 0.7212 MB / 393.9 MB, free: 1.223 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002394/0.2997, allocations: 42.7 kB / 394 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.2998, allocations: 48.3 kB / 394 MB, free: 1.18 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2998, allocations: 11.81 kB / 394 MB, free: 1.168 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3227, allocations: 4.537 MB / 398.6 MB, free: 460 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/8.14, allocations: 13.62 kB / 398.6 MB, free: 448 kB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches