Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",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.00133/0.00133, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001327/0.001328, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.002359/0.002359, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.258, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.1733/0.4313, allocations: 149.2 MB / 0.5366 GB, free: 3.008 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003171/0.4346, allocations: 2.526 MB / 0.539 GB, free: 484 kB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.638e-05/0.4346, allocations: 0 / 0.539 GB, free: 484 kB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.4348, allocations: 27.81 kB / 0.5391 GB, free: 456 kB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009575/0.4358, allocations: 322.3 kB / 0.5394 GB, free: 132 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.436, allocations: 51.75 kB / 0.5394 GB, free: 80 kB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.2346/0.6706, allocations: 80.2 kB / 0.5395 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.695e-05/0.6707, allocations: 2.891 kB / 0.5395 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.6709, allocations: 30.23 kB / 0.5395 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.923e-05/0.671, allocations: 32 kB / 0.5396 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.671, allocations: 3.719 kB / 0.5396 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.6721, allocations: 364.8 kB / 0.5399 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.787e-05/0.6722, allocations: 6.625 kB / 0.5399 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.6722, allocations: 29.03 kB / 0.5399 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000822/0.6731, allocations: 299.4 kB / 0.5402 GB, free: 2.051 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.6731, allocations: 0.5 kB / 0.5402 GB, free: 2.051 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.6731, allocations: 1.703 kB / 0.5402 GB, free: 2.051 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.6731, allocations: 0.8125 kB / 0.5402 GB, free: 2.051 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001102/0.6742, allocations: 438 kB / 0.5406 GB, free: 17.67 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.6743, allocations: 10.12 kB / 0.5407 GB, free: 17.67 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.6743, allocations: 40.12 kB / 0.5407 GB, free: 17.63 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006201/0.6805, allocations: 462.8 kB / 0.5411 GB, free: 17.62 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.6807, allocations: 162.4 kB / 0.5413 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.6807, allocations: 7.156 kB / 0.5413 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.466e-05/0.6808, allocations: 10.12 kB / 0.5413 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000796/0.6816, allocations: 301.9 kB / 0.5416 GB, free: 17.39 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.6816, allocations: 0 / 0.5416 GB, free: 17.39 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.6817, allocations: 5.031 kB / 0.5416 GB, free: 17.39 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.6817, allocations: 2.656 kB / 0.5416 GB, free: 17.39 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009195/0.6826, allocations: 272.4 kB / 0.5419 GB, free: 17.39 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.6837, allocations: 434.8 kB / 0.5423 GB, free: 17.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.6847, allocations: 205.6 kB / 0.5425 GB, free: 17.08 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.685, allocations: 71.52 kB / 0.5425 GB, free: 17.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.685, allocations: 3.766 kB / 0.5425 GB, free: 17.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.685, allocations: 33.81 kB / 0.5426 GB, free: 17.03 MB / 478.1 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.685, allocations: 0.9062 kB / 0.5426 GB, free: 17.03 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.001748/0.6868, allocations: 430.2 kB / 0.543 GB, free: 16.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.6869, allocations: 56.47 kB / 0.543 GB, free: 16.92 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.338e-05/0.6869, allocations: 101.9 kB / 0.5431 GB, free: 16.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.687, allocations: 28.14 kB / 0.5432 GB, free: 16.79 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.436e-05/0.687, allocations: 97.77 kB / 0.5433 GB, free: 16.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.484e-05/0.6871, allocations: 62.69 kB / 0.5433 GB, free: 16.66 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.994e-05/0.6872, allocations: 40.84 kB / 0.5434 GB, free: 16.64 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.6873, allocations: 318.1 kB / 0.5437 GB, free: 16.33 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.6876, allocations: 83.14 kB / 0.5437 GB, free: 16.33 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.6879, allocations: 117.2 kB / 0.5438 GB, free: 16.29 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005256/0.6884, allocations: 204.2 kB / 0.544 GB, free: 16.25 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6884, allocations: 3.938 kB / 0.544 GB, free: 16.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006585/0.6891, allocations: 242.8 kB / 0.5443 GB, free: 16.21 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.6891, allocations: 9.375 kB / 0.5443 GB, free: 16.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6891, allocations: 2.344 kB / 0.5443 GB, free: 16.21 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.6892, allocations: 3.531 kB / 0.5443 GB, free: 16.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/0.6896, allocations: 50.42 kB / 0.5443 GB, free: 16.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.6896, allocations: 3.078 kB / 0.5443 GB, free: 16.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.6899, allocations: 16.11 kB / 0.5444 GB, free: 16.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.6899, allocations: 13.08 kB / 0.5444 GB, free: 16.21 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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.0001186/0.69, allocations: 126.2 kB / 0.5445 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.6901, allocations: 8.828 kB / 0.5445 GB, free: 16.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007887/0.6909, allocations: 281.1 kB / 0.5448 GB, free: 16.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.6909, allocations: 3.094 kB / 0.5448 GB, free: 16.05 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.6909, allocations: 0.9062 kB / 0.5448 GB, free: 16.05 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.6909, allocations: 0 / 0.5448 GB, free: 16.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.6921, allocations: 0.5774 MB / 0.5453 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.6922, allocations: 4.062 kB / 0.5453 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.6925, allocations: 48.02 kB / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.6925, allocations: 0.6875 kB / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.6925, allocations: 13.95 kB / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.6925, allocations: 0 / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.6926, allocations: 5.891 kB / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006441/0.6932, allocations: 328.8 kB / 0.5457 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.746e-05/0.6933, allocations: 85.83 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.6933, allocations: 12.25 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.6936, allocations: 9.141 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.6936, allocations: 22.33 kB / 0.5458 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.6937, allocations: 10.39 kB / 0.5459 GB, free: 15.47 MB / 478.1 MB Notification: Performance of sorting global known variables: time 4.786e-05/0.6937, allocations: 78.91 kB / 0.5459 GB, free: 15.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6937, allocations: 0 / 0.5459 GB, free: 15.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.6941, allocations: 44.97 kB / 0.546 GB, free: 15.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (18): * Single equations (assignments): 18 * 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.001081/0.6952, allocations: 0.8955 MB / 0.5468 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0006236/0.6958, allocations: 200.8 kB / 0.547 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6958, allocations: 0 / 0.547 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002729/0.6961, allocations: 101.7 kB / 0.5471 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004493/0.6966, allocations: 38.34 kB / 0.5472 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009621/0.6975, allocations: 317.5 kB / 0.5475 GB, free: 14.52 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.6978, allocations: 0.6924 MB / 0.5481 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002865/0.6981, allocations: 56.03 kB / 0.5482 GB, free: 13.81 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.6983, allocations: 45.28 kB / 0.5482 GB, free: 13.8 MB / 478.1 MB Notification: Performance of SimCode: time 3.31e-07/0.6983, allocations: 2.172 kB / 0.5482 GB, free: 13.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.7234, allocations: 4.339 MB / 0.5525 GB, free: 13.38 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.654, allocations: 0.8438 kB / 0.5525 GB, free: 13.38 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches