Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",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.001124/0.001124, allocations: 108 kB / 16.41 MB, free: 6.484 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.001275/0.001275, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.437/1.437, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2106/0.2106, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.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.001488/0.001488, allocations: 59.91 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.5031/0.6292, allocations: 179.7 MB / 0.6629 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.008602/0.6378, allocations: 5.739 MB / 0.6685 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008516/0.6387, allocations: 23.81 kB / 0.6685 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.6398, allocations: 318 kB / 0.6688 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004566/0.6445, allocations: 1.595 MB / 0.6703 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003408/0.6479, allocations: 1.241 MB / 0.6716 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002728/0.6507, allocations: 1.852 MB / 0.6734 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.6518, allocations: 457.2 kB / 0.6738 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003462/0.6553, allocations: 1.246 MB / 0.675 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.6569, allocations: 0.7588 MB / 0.6758 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.6571, allocations: 60 kB / 0.6758 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00204/0.6592, allocations: 0.8244 MB / 0.6766 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.00042/0.6596, allocations: 271.2 kB / 0.6769 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008032/0.6604, allocations: 394.2 kB / 0.6773 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002834/0.6633, allocations: 1.429 MB / 0.6786 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6633, allocations: 4 kB / 0.6787 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.442e-06/0.6633, allocations: 0 / 0.6787 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.965e-05/0.6633, allocations: 0 / 0.6787 GB, free: 6.902 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003062/0.6664, allocations: 1.155 MB / 0.6798 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.6665, allocations: 15.89 kB / 0.6798 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001699/0.6666, allocations: 94.52 kB / 0.6799 GB, free: 5.582 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009046/0.6676, allocations: 139.5 kB / 0.68 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.6686, allocations: 0.5511 MB / 0.6806 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.6687, allocations: 100.4 kB / 0.6807 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.6688, allocations: 51.98 kB / 0.6807 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.6702, allocations: 0.8097 MB / 0.6815 GB, free: 3.809 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.6702, allocations: 4 kB / 0.6815 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.225e-05/0.6703, allocations: 28 kB / 0.6815 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.497e-05/0.6704, allocations: 36.92 kB / 0.6816 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.6714, allocations: 0.6127 MB / 0.6822 GB, free: 3.129 MB / 0.5137 GB 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.004719/0.6762, allocations: 3.986 MB / 0.686 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006078/0.6768, allocations: 351.2 kB / 0.6864 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/0.6771, allocations: 177.3 kB / 0.6866 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004916/0.6776, allocations: 366 kB / 0.6869 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.6776, allocations: 42.84 kB / 0.6869 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=34): time 1.653e-06/0.6776, allocations: 0 / 0.6869 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39): time 0.005786/0.6834, allocations: 1.676 MB / 0.6886 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.6836, allocations: 136.5 kB / 0.6887 GB, free: 12 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009285/0.6845, allocations: 0.6095 MB / 0.6893 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.542e-05/0.6846, allocations: 33.7 kB / 0.6893 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003274/0.6849, allocations: 375.8 kB / 0.6897 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.6851, allocations: 150.8 kB / 0.6898 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000254/0.6854, allocations: 154.6 kB / 0.69 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001946/0.6856, allocations: 374.8 kB / 0.6903 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.686, allocations: 205.9 kB / 0.6905 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006495/0.6866, allocations: 0.5125 MB / 0.691 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.6877, allocations: 0.7523 MB / 0.6918 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.6877, allocations: 4 kB / 0.6918 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001575/0.6893, allocations: 0.8776 MB / 0.6926 GB, free: 7.648 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.6893, allocations: 16.06 kB / 0.6927 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.6893, allocations: 8 kB / 0.6927 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.6908, allocations: 313.3 kB / 0.693 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.6912, allocations: 127.7 kB / 0.6931 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.6924, allocations: 0.9309 MB / 0.694 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/0.6929, allocations: 28.03 kB / 0.694 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.539e-05/0.693, allocations: 71.98 kB / 0.6941 GB, free: 6.137 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003854/0.6934, allocations: 253.3 kB / 0.6943 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.6936, allocations: 72.33 kB / 0.6944 GB, free: 5.809 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.6951, allocations: 0.6796 MB / 0.6951 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.6951, allocations: 4 kB / 0.6951 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.6951, allocations: 0 / 0.6951 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.6951, allocations: 3.984 kB / 0.6951 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.6976, allocations: 1.614 MB / 0.6966 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.6976, allocations: 0 / 0.6966 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.6987, allocations: 207.8 kB / 0.6968 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.6988, allocations: 20.84 kB / 0.6969 GB, free: 3.109 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.154e-05/0.6989, allocations: 28.05 kB / 0.6969 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.7011, allocations: 2.881 MB / 0.6997 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.7011, allocations: 4.031 kB / 0.6997 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.7024, allocations: 0.8094 MB / 0.7005 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003313/0.7028, allocations: 196.6 kB / 0.7007 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.7029, allocations: 12 kB / 0.7007 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.7033, allocations: 15.98 kB / 0.7007 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.7035, allocations: 39.89 kB / 0.7007 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.924e-05/0.7035, allocations: 43.92 kB / 0.7008 GB, free: 14.76 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005881/0.7041, allocations: 443 kB / 0.7012 GB, free: 14.33 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.71e-07/0.7041, allocations: 4.062 kB / 0.7012 GB, free: 14.33 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001059/0.7052, allocations: 291.7 kB / 0.7015 GB, free: 14.04 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (volume.medium.p,volume.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002664/0.7079, allocations: 1.617 MB / 0.7031 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001368/0.7093, allocations: 0.5589 MB / 0.7036 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.7093, allocations: 3.938 kB / 0.7036 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.7104, allocations: 418.5 kB / 0.704 GB, free: 11.41 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.7121, allocations: 377.8 kB / 0.7044 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008748/0.7209, allocations: 6.311 MB / 0.7105 GB, free: 4.336 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006/0.7215, allocations: 0.9261 MB / 0.7114 GB, free: 3.383 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009559/0.7225, allocations: 270 kB / 0.7117 GB, free: 3.117 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.723, allocations: 267.3 kB / 0.712 GB, free: 2.855 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.723, allocations: 0 / 0.712 GB, free: 2.855 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06022/0.7832, allocations: 25.4 MB / 0.7368 GB, free: 9.418 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.71, allocations: 7.797 kB / 0.7368 GB, free: 9.41 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Nitrogen/Nitrogen.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches