Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 201.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007172/0.0007172, allocations: 96.11 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1768/0.1768, allocations: 44.83 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002403/0.0002403, allocations: 4 kB / 464.8 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.102, allocations: 62.95 MB / 0.5153 GB, free: 2.785 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.3501/0.4521, allocations: 159 MB / 0.6706 GB, free: 14.36 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.006744/0.4589, allocations: 5.109 MB / 0.6756 GB, free: 9.242 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008267/0.4597, allocations: 23.81 kB / 0.6756 GB, free: 9.219 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.4608, allocations: 258.3 kB / 0.6759 GB, free: 8.965 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003485/0.4643, allocations: 1.173 MB / 0.677 GB, free: 7.789 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.4667, allocations: 0.8293 MB / 0.6778 GB, free: 6.969 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.4692, allocations: 2.25 MB / 0.68 GB, free: 4.715 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007633/0.4699, allocations: 388.9 kB / 0.6804 GB, free: 4.328 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002051/0.472, allocations: 0.8951 MB / 0.6813 GB, free: 3.43 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.4734, allocations: 0.7395 MB / 0.682 GB, free: 2.688 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.4736, allocations: 32 kB / 0.682 GB, free: 2.656 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.4748, allocations: 459.3 kB / 0.6825 GB, free: 2.207 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003251/0.4752, allocations: 243.2 kB / 0.6827 GB, free: 1.969 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002611/0.4755, allocations: 165.3 kB / 0.6829 GB, free: 1.801 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.4767, allocations: 0.9253 MB / 0.6838 GB, free: 0.875 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.4767, allocations: 0 / 0.6838 GB, free: 0.875 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4767, allocations: 0 / 0.6838 GB, free: 0.875 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.149e-05/0.4768, allocations: 0 / 0.6838 GB, free: 0.875 MB / 490.7 MB 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.002082/0.4788, allocations: 0.9621 MB / 0.6847 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.4789, allocations: 8.031 kB / 0.6847 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008116/0.4797, allocations: 139 kB / 0.6848 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008521/0.4806, allocations: 0.4888 MB / 0.6853 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.4807, allocations: 104.3 kB / 0.6854 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.4808, allocations: 51.98 kB / 0.6855 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.4821, allocations: 0.8097 MB / 0.6863 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.4821, allocations: 4 kB / 0.6863 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.493e-05/0.4822, allocations: 27.98 kB / 0.6863 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.548e-05/0.4823, allocations: 40.92 kB / 0.6863 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.4834, allocations: 0.6243 MB / 0.6869 GB, free: 13.45 MB / 0.4948 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.004496/0.4879, allocations: 3.94 MB / 0.6908 GB, free: 9.254 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005438/0.4884, allocations: 351.6 kB / 0.6911 GB, free: 8.902 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.4887, allocations: 169.3 kB / 0.6913 GB, free: 8.734 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.4888, allocations: 85.39 kB / 0.6914 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.4889, allocations: 42.78 kB / 0.6914 GB, free: 8.582 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=34): time 2.144e-06/0.4889, allocations: 0 / 0.6914 GB, free: 8.582 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.005331/0.4942, allocations: 1.681 MB / 0.6931 GB, free: 6.824 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.951e-05/0.4943, allocations: 132.5 kB / 0.6932 GB, free: 6.664 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007317/0.4951, allocations: 0.6055 MB / 0.6938 GB, free: 6.047 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.4951, allocations: 37.7 kB / 0.6938 GB, free: 6.004 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000256/0.4954, allocations: 370.8 kB / 0.6942 GB, free: 5.637 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.4955, allocations: 146 kB / 0.6943 GB, free: 5.492 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.4956, allocations: 12 kB / 0.6943 GB, free: 5.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001975/0.4958, allocations: 378.7 kB / 0.6947 GB, free: 5.102 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.4962, allocations: 197.9 kB / 0.6949 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005434/0.4967, allocations: 0.5086 MB / 0.6954 GB, free: 4.258 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.4972, allocations: 308.3 kB / 0.6957 GB, free: 3.957 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4972, allocations: 0 / 0.6957 GB, free: 3.957 MB / 0.4948 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001437/0.4987, allocations: 0.8726 MB / 0.6965 GB, free: 3.074 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.4987, allocations: 8 kB / 0.6965 GB, free: 3.066 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.4987, allocations: 15.94 kB / 0.6965 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.5001, allocations: 319.5 kB / 0.6968 GB, free: 2.738 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.5005, allocations: 127.8 kB / 0.697 GB, free: 2.613 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.5016, allocations: 0.9261 MB / 0.6979 GB, free: 1.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005368/0.5021, allocations: 43.97 kB / 0.6979 GB, free: 1.621 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.572e-05/0.5022, allocations: 64 kB / 0.698 GB, free: 1.559 MB / 0.4948 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003449/0.5026, allocations: 254.1 kB / 0.6982 GB, free: 1.301 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.5027, allocations: 71.16 kB / 0.6983 GB, free: 1.23 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/0.5044, allocations: 0.8693 MB / 0.6991 GB, free: 352 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.5044, allocations: 4 kB / 0.6991 GB, free: 348 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.5044, allocations: 0 / 0.6991 GB, free: 348 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.5044, allocations: 3.984 kB / 0.6991 GB, free: 344 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/0.5064, allocations: 1.437 MB / 0.7005 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.5064, allocations: 7.953 kB / 0.7005 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009721/0.5074, allocations: 211.9 kB / 0.7007 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.597e-05/0.5075, allocations: 24.84 kB / 0.7008 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.5075, allocations: 20 kB / 0.7008 GB, free: 14.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/0.5094, allocations: 2.684 MB / 0.7034 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.5094, allocations: 8.016 kB / 0.7034 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.5106, allocations: 0.8141 MB / 0.7042 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.5109, allocations: 192.2 kB / 0.7044 GB, free: 10.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.118e-05/0.5109, allocations: 8 kB / 0.7044 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000421/0.5114, allocations: 35.98 kB / 0.7044 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.5115, allocations: 35.95 kB / 0.7045 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.376e-05/0.5115, allocations: 47.94 kB / 0.7045 GB, free: 10.37 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005116/0.512, allocations: 431 kB / 0.7049 GB, free: 9.949 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.753e-06/0.5121, allocations: 0 / 0.7049 GB, free: 9.949 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008334/0.5129, allocations: 259.9 kB / 0.7052 GB, free: 9.695 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006883/0.5136, allocations: 295.9 kB / 0.7055 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001047/0.5146, allocations: 0.5554 MB / 0.706 GB, free: 8.848 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5147, allocations: 0 / 0.706 GB, free: 8.848 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008693/0.5155, allocations: 410.3 kB / 0.7064 GB, free: 8.434 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.5171, allocations: 338.8 kB / 0.7067 GB, free: 8.109 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.5192, allocations: 1.611 MB / 0.7083 GB, free: 6.449 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.5197, allocations: 0.93 MB / 0.7092 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004552/0.5202, allocations: 135.3 kB / 0.7093 GB, free: 5.359 MB / 0.5105 GB Notification: Performance of SimCode: time 6.41e-07/0.5202, allocations: 0 / 0.7093 GB, free: 5.359 MB / 0.5105 GB Notification: Performance of Templates: time 0.197/0.7172, allocations: 16.32 MB / 0.7253 GB, free: 176.8 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Nitrogen/Nitrogen.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches