Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 124.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2359/0.2359, allocations: 46.92 MB / 357.1 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_phX,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestOnly_R134a_setState_phX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_phX,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestOnly_R134a_setState_phX",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.91 kB / 0.4909 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1295, allocations: 65.99 MB / 0.5554 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_phX): time 0.01204/0.1415, allocations: 8.445 MB / 0.5636 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01548/0.157, allocations: 13.04 MB / 0.5763 GB, free: 304 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.053e-05/0.157, allocations: 4 kB / 0.5763 GB, free: 300 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.1572, allocations: 43.73 kB / 0.5764 GB, free: 256 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006774/0.164, allocations: 2.135 MB / 0.5785 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.323e-06/0.164, allocations: 4 kB / 0.5785 GB, free: 14.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.1642, allocations: 51.67 kB / 0.5785 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.695e-05/0.1642, allocations: 0 / 0.5785 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.1643, allocations: 39.78 kB / 0.5786 GB, free: 14.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.707e-05/0.1644, allocations: 15.92 kB / 0.5786 GB, free: 14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.1644, allocations: 0 / 0.5786 GB, free: 14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01024/0.1746, allocations: 6.039 MB / 0.5845 GB, free: 7.945 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.514e-05/0.1747, allocations: 11.92 kB / 0.5845 GB, free: 7.934 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.825e-05/0.1747, allocations: 19.94 kB / 0.5845 GB, free: 7.914 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.1863, allocations: 4.787 MB / 0.5892 GB, free: 3.121 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.1863, allocations: 0 / 0.5892 GB, free: 3.121 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1863, allocations: 0 / 0.5892 GB, free: 3.121 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1863, allocations: 0 / 0.5892 GB, free: 3.121 MB / 446.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.003865/0.1902, allocations: 0.6449 MB / 0.5898 GB, free: 2.426 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.1902, allocations: 8.031 kB / 0.5898 GB, free: 2.418 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.528e-05/0.1903, allocations: 38.56 kB / 0.5899 GB, free: 2.371 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.1904, allocations: 7.984 kB / 0.5899 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.1906, allocations: 167.1 kB / 0.59 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.1906, allocations: 7.938 kB / 0.59 GB, free: 2.152 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.1907, allocations: 4 kB / 0.59 GB, free: 2.148 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.191, allocations: 109.6 kB / 0.5901 GB, free: 2.035 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.191, allocations: 4 kB / 0.5901 GB, free: 2.031 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.191, allocations: 8 kB / 0.5902 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.191, allocations: 0 / 0.5902 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003657/0.1914, allocations: 135.8 kB / 0.5903 GB, free: 1.891 MB / 446.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.0006713/0.1921, allocations: 396 kB / 0.5907 GB, free: 1.441 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.1924, allocations: 66.53 kB / 0.5907 GB, free: 1.367 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.1925, allocations: 40.78 kB / 0.5908 GB, free: 1.324 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2561/0.4486, allocations: 2.128 MB / 0.5928 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.4487, allocations: 33.55 kB / 0.5929 GB, free: 33.04 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.4487, allocations: 0 / 0.5929 GB, free: 33.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0007157/0.4494, allocations: 139 kB / 0.593 GB, free: 33.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.4494, allocations: 60.8 kB / 0.5931 GB, free: 32.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.4495, allocations: 99.23 kB / 0.5932 GB, free: 32.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.4495, allocations: 25.7 kB / 0.5932 GB, free: 32.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.4495, allocations: 99.02 kB / 0.5933 GB, free: 32.74 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.4495, allocations: 20.98 kB / 0.5933 GB, free: 32.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.25e-05/0.4496, allocations: 24.03 kB / 0.5933 GB, free: 32.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.4496, allocations: 321.7 kB / 0.5936 GB, free: 32.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.823e-05/0.4497, allocations: 24.98 kB / 0.5936 GB, free: 32.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.4498, allocations: 47.56 kB / 0.5937 GB, free: 32.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.45, allocations: 67.62 kB / 0.5938 GB, free: 32.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.45, allocations: 0.8125 kB / 0.5938 GB, free: 32.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002791/0.4503, allocations: 106.4 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.4503, allocations: 6.031 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4503, allocations: 0.5156 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4503, allocations: 0.8125 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.4504, allocations: 21 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.4505, allocations: 1.719 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.026e-05/0.4505, allocations: 8.25 kB / 0.5939 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.4505, allocations: 7.812 kB / 0.5939 GB, free: 32.34 MB / 446.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 (8): * Single equations (assignments): 8 * 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 5.98e-05/0.4506, allocations: 125.8 kB / 0.594 GB, free: 32.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.4506, allocations: 2.906 kB / 0.594 GB, free: 32.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000476/0.4511, allocations: 254.3 kB / 0.5943 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.4511, allocations: 7.188 kB / 0.5943 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4511, allocations: 0.8125 kB / 0.5943 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.4511, allocations: 0.6094 kB / 0.5943 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.4514, allocations: 227.6 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4514, allocations: 0.5938 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.4515, allocations: 23.48 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.4515, allocations: 5.125 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.4515, allocations: 5.281 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.4515, allocations: 0.5625 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4515, allocations: 1.094 kB / 0.5945 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004012/0.4519, allocations: 255.7 kB / 0.5948 GB, free: 31.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.452, allocations: 83.91 kB / 0.5949 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.452, allocations: 2.125 kB / 0.5949 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.755e-05/0.4521, allocations: 7.375 kB / 0.5949 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.219e-05/0.4521, allocations: 11.8 kB / 0.5949 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.4521, allocations: 10.94 kB / 0.5949 GB, free: 31.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.362e-05/0.4522, allocations: 78.94 kB / 0.595 GB, free: 31.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4522, allocations: 3.281 kB / 0.595 GB, free: 31.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002623/0.4548, allocations: 377.2 kB / 0.5953 GB, free: 31.66 MB / 446.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: 3 ($cse3.phase,$cse4,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.01421/0.469, allocations: 4.244 MB / 0.5995 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006026/0.4696, allocations: 98.39 kB / 0.5996 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4696, allocations: 0 / 0.5996 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.4698, allocations: 61.45 kB / 0.5996 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.4702, allocations: 19.84 kB / 0.5996 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.4737, allocations: 452.2 kB / 0.6001 GB, free: 29.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.474, allocations: 0.6987 MB / 0.6008 GB, free: 28.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.4742, allocations: 51.3 kB / 0.6008 GB, free: 28.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4743, allocations: 32.3 kB / 0.6008 GB, free: 28.46 MB / 446.1 MB Notification: Performance of SimCode: time 2.014e-06/0.4743, allocations: 4.719 kB / 0.6008 GB, free: 28.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05556/0.5299, allocations: 18.13 MB / 0.6185 GB, free: 23.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.779/9.309, allocations: 0 / 0.6185 GB, free: 23.46 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019984 ModelicaTest_4_1_0_ModelicaTest_Media_TestOnly_R134a_setState_phX.fmu > ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Media/TestOnly/R134a_setState_phX/R134a_setState_phX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX_res.csv failed! Error: Could not read variable rho in file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX_res.csv. Warning: Get data of variable rho from file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.R134a_setState_phX_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.652977836987702]