Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX",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.001605/0.001605, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001816/0.001816, allocations: 192 kB / 18.56 MB, free: 4.434 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.398/1.398, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2217/0.2217, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001519, allocations: 60.81 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_pTX): time 0.01184/0.1256, allocations: 8.309 MB / 477.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.1386, allocations: 11.09 MB / 488.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.1388, allocations: 0 / 488.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.139, allocations: 35.8 kB / 488.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006031/0.1451, allocations: 1.8 MB / 490.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.078e-05/0.1451, allocations: 0 / 490.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1453, allocations: 47.72 kB / 490.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.1453, allocations: 0 / 490.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.1455, allocations: 35.8 kB / 490.7 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.876e-05/0.1456, allocations: 15.92 kB / 490.7 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.1456, allocations: 0 / 490.7 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0109/0.1565, allocations: 6.616 MB / 497.3 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.1565, allocations: 7.922 kB / 497.3 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.1566, allocations: 15.94 kB / 497.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.171, allocations: 4.624 MB / 0.4902 GB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.171, allocations: 0 / 0.4902 GB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.171, allocations: 0 / 0.4902 GB, free: 13.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.171, allocations: 0 / 0.4902 GB, free: 13.58 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.003109/0.1741, allocations: 0.5498 MB / 0.4907 GB, free: 12.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1742, allocations: 8.031 kB / 0.4907 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/0.1742, allocations: 42.55 kB / 0.4908 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.1744, allocations: 11.91 kB / 0.4908 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/0.1745, allocations: 163.1 kB / 0.4909 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.1745, allocations: 11.92 kB / 0.491 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.1745, allocations: 0 / 0.491 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.1747, allocations: 81.56 kB / 0.491 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.1747, allocations: 0 / 0.491 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1747, allocations: 3.984 kB / 0.491 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1748, allocations: 4 kB / 0.491 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.887e-05/0.1749, allocations: 67.97 kB / 0.4911 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000428/0.1753, allocations: 324.7 kB / 0.4914 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.63e-05/0.1754, allocations: 46.52 kB / 0.4915 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.599e-05/0.1754, allocations: 36.91 kB / 0.4915 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002976/0.1784, allocations: 1.705 MB / 0.4932 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.1785, allocations: 34.56 kB / 0.4932 GB, free: 10.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.033e-06/0.1785, allocations: 0 / 0.4932 GB, free: 10.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002983/0.1788, allocations: 113.6 kB / 0.4933 GB, free: 9.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.1788, allocations: 55.41 kB / 0.4933 GB, free: 9.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.887e-05/0.1789, allocations: 97.86 kB / 0.4934 GB, free: 9.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1789, allocations: 25.7 kB / 0.4935 GB, free: 9.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.179, allocations: 84.05 kB / 0.4935 GB, free: 9.684 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.179, allocations: 31.55 kB / 0.4936 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.1791, allocations: 21.72 kB / 0.4936 GB, free: 9.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.1792, allocations: 318.8 kB / 0.4939 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.905e-05/0.1792, allocations: 24.12 kB / 0.4939 GB, free: 9.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.884e-05/0.1793, allocations: 37.7 kB / 0.494 GB, free: 9.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.812e-05/0.1793, allocations: 61.66 kB / 0.494 GB, free: 9.172 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1794, allocations: 0 / 0.494 GB, free: 9.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001634/0.1795, allocations: 93.61 kB / 0.4941 GB, free: 9.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1795, allocations: 4 kB / 0.4941 GB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1796, allocations: 4 kB / 0.4941 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1796, allocations: 32 / 0.4941 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.105e-05/0.1796, allocations: 12 kB / 0.4941 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1797, allocations: 0 / 0.4941 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.949e-05/0.1797, allocations: 7.844 kB / 0.4941 GB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1797, allocations: 8 kB / 0.4941 GB, free: 9.039 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 7.427e-05/0.1798, allocations: 122 kB / 0.4943 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.1798, allocations: 3.984 kB / 0.4943 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002553/0.1801, allocations: 153.6 kB / 0.4944 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001318/0.1803, allocations: 121.6 kB / 0.4945 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1803, allocations: 256 / 0.4945 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1803, allocations: 0 / 0.4945 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004602/0.1807, allocations: 438.2 kB / 0.4949 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1808, allocations: 0 / 0.4949 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.723e-05/0.1808, allocations: 16 kB / 0.495 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.1808, allocations: 7.938 kB / 0.495 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.1808, allocations: 4.172 kB / 0.495 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1809, allocations: 4 kB / 0.495 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1809, allocations: 3.938 kB / 0.495 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.1811, allocations: 219.4 kB / 0.4952 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.51e-05/0.1811, allocations: 84.95 kB / 0.4953 GB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.1812, allocations: 3.938 kB / 0.4953 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.29e-05/0.1812, allocations: 8 kB / 0.4953 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.028e-05/0.1813, allocations: 11.98 kB / 0.4953 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.1813, allocations: 0 / 0.4953 GB, free: 7.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.775e-05/0.1813, allocations: 75.28 kB / 0.4954 GB, free: 7.676 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1813, allocations: 4 kB / 0.4954 GB, free: 7.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001993/0.1833, allocations: 339.8 kB / 0.4957 GB, free: 7.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (state.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.01925/0.2026, allocations: 4.361 MB / 0.5 GB, free: 2.949 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003636/0.203, allocations: 117.6 kB / 0.5001 GB, free: 2.828 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.203, allocations: 0 / 0.5001 GB, free: 2.828 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.666e-05/0.2031, allocations: 56.11 kB / 0.5001 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.2037, allocations: 40.2 kB / 0.5002 GB, free: 2.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.206, allocations: 394.1 kB / 0.5005 GB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.2062, allocations: 0.6885 MB / 0.5012 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.002e-05/0.2063, allocations: 23.91 kB / 0.5012 GB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.342e-05/0.2064, allocations: 23.44 kB / 0.5012 GB, free: 1.547 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2064, allocations: 0 / 0.5012 GB, free: 1.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2514/0.4578, allocations: 19.7 MB / 0.5205 GB, free: 41.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.424/8.882, allocations: 4.766 kB / 0.5205 GB, free: 41.59 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/R134a_setState_pTX/R134a_setState_pTX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches