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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008619/0.0008619, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009429/0.0009429, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8678/0.8678, allocations: 173.4 MB / 200.5 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132e-05/1.275e-05, allocations: 5.516 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.09826/0.09827, allocations: 128.3 MB / 446.7 MB, free: 5.52 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.09991, allocations: 2.246 MB / 449 MB, free: 3.266 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.233e-05/0.09994, allocations: 0 / 449 MB, free: 3.266 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.1001, allocations: 27.83 kB / 449 MB, free: 3.238 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006203/0.1007, allocations: 334 kB / 449.3 MB, free: 2.91 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001189/0.1008, allocations: 63.67 kB / 449.4 MB, free: 2.848 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.313e-05/0.1009, allocations: 75.48 kB / 449.5 MB, free: 2.773 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.101, allocations: 11.98 kB / 449.5 MB, free: 2.762 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1011, allocations: 47.83 kB / 449.5 MB, free: 2.715 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.453e-05/0.1011, allocations: 19.92 kB / 449.5 MB, free: 2.695 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.011e-05/0.1011, allocations: 0 / 449.5 MB, free: 2.695 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000397/0.1015, allocations: 347.3 kB / 449.9 MB, free: 2.355 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.1015, allocations: 7.984 kB / 449.9 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.1016, allocations: 23.92 kB / 449.9 MB, free: 2.324 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.1019, allocations: 331.2 kB / 450.2 MB, free: 2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1019, allocations: 0 / 450.2 MB, free: 2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1019, allocations: 0 / 450.2 MB, free: 2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1019, allocations: 4 kB / 450.2 MB, free: 1.996 MB / 410.7 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.0006371/0.1026, allocations: 361.8 kB / 450.6 MB, free: 1.613 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1026, allocations: 8.922 kB / 450.6 MB, free: 1.605 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.467e-05/0.1026, allocations: 38.75 kB / 450.6 MB, free: 1.559 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002817/0.1055, allocations: 492.1 kB / 451.1 MB, free: 1.078 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.442e-05/0.1055, allocations: 113.7 kB / 451.2 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.1055, allocations: 11.94 kB / 451.2 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.1056, allocations: 8 kB / 451.3 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.106, allocations: 297.2 kB / 451.5 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.1061, allocations: 0 / 451.5 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.1061, allocations: 0 / 451.5 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1061, allocations: 4 kB / 451.6 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.1066, allocations: 279.7 kB / 451.8 MB, free: 356 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.154/0.2606, allocations: 369.5 kB / 452.2 MB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006894/0.2612, allocations: 196.5 kB / 452.4 MB, free: 10 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.2614, allocations: 67.25 kB / 452.4 MB, free: 9.996 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.2614, allocations: 2.969 kB / 452.4 MB, free: 9.996 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.364e-05/0.2614, allocations: 32.28 kB / 452.5 MB, free: 9.957 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.773e-06/0.2614, allocations: 0 / 452.5 MB, free: 9.957 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001171/0.2626, allocations: 433.1 kB / 452.9 MB, free: 9.926 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.2626, allocations: 56.66 kB / 453 MB, free: 9.863 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.391e-05/0.2627, allocations: 105.5 kB / 453.1 MB, free: 9.766 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.2627, allocations: 26.2 kB / 453.1 MB, free: 9.734 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.436e-05/0.2627, allocations: 100.2 kB / 453.2 MB, free: 9.645 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.2627, allocations: 60.84 kB / 453.2 MB, free: 9.613 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.965e-05/0.2628, allocations: 38.55 kB / 453.3 MB, free: 9.598 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.173e-05/0.2629, allocations: 319.5 kB / 453.6 MB, free: 9.285 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.263, allocations: 84.33 kB / 453.7 MB, free: 9.285 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.2632, allocations: 121.8 kB / 453.8 MB, free: 9.246 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.2635, allocations: 203.5 kB / 454 MB, free: 9.207 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.2635, allocations: 0 / 454 MB, free: 9.207 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003977/0.2639, allocations: 245.9 kB / 454.2 MB, free: 9.168 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.2639, allocations: 6.156 kB / 454.2 MB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2639, allocations: 1.875 kB / 454.2 MB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.264, allocations: 5.328 kB / 454.2 MB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.2642, allocations: 53.77 kB / 454.3 MB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.2642, allocations: 2.625 kB / 454.3 MB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.2643, allocations: 14.47 kB / 454.3 MB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.2643, allocations: 15.38 kB / 454.3 MB, free: 9.168 MB / 410.7 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 6.214e-05/0.2644, allocations: 125 kB / 454.5 MB, free: 9.051 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.786e-05/0.2644, allocations: 10.5 kB / 454.5 MB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000473/0.2649, allocations: 276.3 kB / 454.7 MB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2649, allocations: 3 kB / 454.7 MB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2649, allocations: 0 / 454.7 MB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2649, allocations: 1.688 kB / 454.7 MB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006543/0.2655, allocations: 0.5376 MB / 455.3 MB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2655, allocations: 1 kB / 455.3 MB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.2657, allocations: 46.11 kB / 455.3 MB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2657, allocations: 0.9375 kB / 455.3 MB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2657, allocations: 6.438 kB / 455.3 MB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2657, allocations: 5.906 kB / 455.3 MB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2657, allocations: 6.359 kB / 455.3 MB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.266, allocations: 324.5 kB / 455.7 MB, free: 8.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.187e-06/0.266, allocations: 13.69 kB / 455.7 MB, free: 8.566 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.266, allocations: 4.75 kB / 455.7 MB, free: 8.566 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.2662, allocations: 19.66 kB / 455.7 MB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.2662, allocations: 11.06 kB / 455.7 MB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.2662, allocations: 10.94 kB / 455.7 MB, free: 8.562 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.453e-05/0.2662, allocations: 86.5 kB / 455.8 MB, free: 8.488 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2662, allocations: 3.609 kB / 455.8 MB, free: 8.488 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000231/0.2664, allocations: 45.22 kB / 455.8 MB, free: 8.488 MB / 410.7 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.0005334/0.267, allocations: 0.8814 MB / 456.7 MB, free: 7.809 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.2673, allocations: 195.4 kB / 456.9 MB, free: 7.809 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.2673, allocations: 0.875 kB / 456.9 MB, free: 7.809 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.2675, allocations: 102 kB / 457 MB, free: 7.809 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.2678, allocations: 44.22 kB / 457.1 MB, free: 7.809 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.2683, allocations: 300.2 kB / 457.4 MB, free: 7.633 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.532e-05/0.2684, allocations: 81.66 kB / 457.4 MB, free: 7.562 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001675/0.2685, allocations: 53.73 kB / 457.5 MB, free: 7.562 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.2686, allocations: 43.06 kB / 457.5 MB, free: 7.555 MB / 410.7 MB Notification: Performance of SimCode: time 5.92e-07/0.2686, allocations: 2.719 kB / 457.5 MB, free: 7.555 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.2838, allocations: 5.238 MB / 462.8 MB, free: 6.547 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.372/6.656, allocations: 15.7 kB / 462.8 MB, free: 6.539 MB / 410.7 MB " [Timeout remaining time 653] (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.00019992 Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smoothState.p in file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv. Warning: Get data of variable smoothState.p from file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv failed! Error: Could not read variable der_p in file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv. Warning: Get data of variable der_p from file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv failed! Error: Could not read variable der_T in file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv. Warning: Get data of variable der_T from file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.376172285526991]