Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.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: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 100 kB / 17.63 MB, free: 5.523 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.0009703/0.0009702, allocations: 192.1 kB / 18.56 MB, free: 4.602 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.38/1.38, allocations: 222.9 MB / 242.2 MB, free: 15.27 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.2071/0.2071, allocations: 44.17 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 56.06 kB / 408.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1125, allocations: 60.83 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3689/0.4814, allocations: 149.4 MB / 0.6041 GB, free: 11.29 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.4829, allocations: 0.9736 MB / 0.6051 GB, free: 10.33 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.138e-05/0.483, allocations: 4 kB / 0.6051 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.4833, allocations: 31.77 kB / 0.6051 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007477/0.4841, allocations: 244.3 kB / 0.6053 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004339/0.4846, allocations: 121.3 kB / 0.6054 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.4849, allocations: 163.3 kB / 0.6056 GB, free: 9.785 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.023e-05/0.4849, allocations: 8 kB / 0.6056 GB, free: 9.777 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.4851, allocations: 101.5 kB / 0.6057 GB, free: 9.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.322e-05/0.4852, allocations: 43.83 kB / 0.6057 GB, free: 9.637 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.4853, allocations: 8 kB / 0.6057 GB, free: 9.629 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005154/0.4858, allocations: 259.7 kB / 0.606 GB, free: 9.375 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.823e-05/0.4859, allocations: 19.92 kB / 0.606 GB, free: 9.355 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.601e-05/0.4859, allocations: 51.73 kB / 0.6061 GB, free: 9.305 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.4863, allocations: 275.4 kB / 0.6063 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4864, allocations: 0 / 0.6063 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4864, allocations: 0 / 0.6063 GB, free: 9.035 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.4864, allocations: 4 kB / 0.6063 GB, free: 9.031 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005051/0.4869, allocations: 411.9 kB / 0.6067 GB, free: 8.582 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.4869, allocations: 8.031 kB / 0.6067 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002041/0.489, allocations: 184.6 kB / 0.6069 GB, free: 8.395 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.4892, allocations: 207.9 kB / 0.6071 GB, free: 8.152 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.4893, allocations: 12 kB / 0.6071 GB, free: 8.141 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.4893, allocations: 15.91 kB / 0.6071 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.4898, allocations: 218.8 kB / 0.6073 GB, free: 7.898 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.4898, allocations: 4 kB / 0.6073 GB, free: 7.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.4899, allocations: 4 kB / 0.6073 GB, free: 7.891 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4899, allocations: 3.938 kB / 0.6073 GB, free: 7.887 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004232/0.4903, allocations: 171.8 kB / 0.6075 GB, free: 7.719 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.001018/0.4913, allocations: 0.5796 MB / 0.6081 GB, free: 7.082 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.4917, allocations: 142.5 kB / 0.6082 GB, free: 6.934 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.4918, allocations: 68.81 kB / 0.6083 GB, free: 6.863 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.4919, allocations: 4 kB / 0.6083 GB, free: 6.859 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.4919, allocations: 38.55 kB / 0.6083 GB, free: 6.812 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.684e-06/0.4919, allocations: 0 / 0.6083 GB, free: 6.812 MB / 446.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005312/0.4972, allocations: 1.299 MB / 0.6096 GB, free: 5.422 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.4973, allocations: 55.41 kB / 0.6096 GB, free: 5.355 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.892e-05/0.4974, allocations: 109.8 kB / 0.6097 GB, free: 5.238 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.4974, allocations: 29.7 kB / 0.6098 GB, free: 5.203 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.4975, allocations: 99.95 kB / 0.6099 GB, free: 5.102 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.4975, allocations: 71.02 kB / 0.6099 GB, free: 5.031 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.4976, allocations: 53.69 kB / 0.61 GB, free: 4.973 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4978, allocations: 314.8 kB / 0.6103 GB, free: 4.656 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.4979, allocations: 71.95 kB / 0.6104 GB, free: 4.586 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.4981, allocations: 108.9 kB / 0.6105 GB, free: 4.469 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.4984, allocations: 183.3 kB / 0.6106 GB, free: 4.277 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.4984, allocations: 0 / 0.6106 GB, free: 4.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004773/0.4989, allocations: 263.4 kB / 0.6109 GB, free: 4.012 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.499, allocations: 12.09 kB / 0.6109 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.499, allocations: 0 / 0.6109 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001701/0.4991, allocations: 48.83 kB / 0.6109 GB, free: 3.949 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/0.4995, allocations: 55.91 kB / 0.611 GB, free: 3.895 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004083/0.4999, allocations: 0.5601 MB / 0.6115 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.5001, allocations: 12.12 kB / 0.6116 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.5001, allocations: 27.98 kB / 0.6116 GB, free: 3.27 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.5002, allocations: 121.8 kB / 0.6117 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.5003, allocations: 11.84 kB / 0.6117 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007976/0.5011, allocations: 354.6 kB / 0.612 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.5011, allocations: 4 kB / 0.6121 GB, free: 2.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5011, allocations: 0 / 0.6121 GB, free: 2.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.5011, allocations: 4.75 kB / 0.6121 GB, free: 2.766 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009152/0.502, allocations: 0.6199 MB / 0.6127 GB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5021, allocations: 0 / 0.6127 GB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.5024, allocations: 60.05 kB / 0.6127 GB, free: 2.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.64e-05/0.5025, allocations: 24.84 kB / 0.6127 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.5025, allocations: 12.94 kB / 0.6128 GB, free: 1.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000879/0.5034, allocations: 1.371 MB / 0.6141 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5034, allocations: 0 / 0.6141 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006359/0.504, allocations: 444.8 kB / 0.6145 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.866e-05/0.5041, allocations: 85.02 kB / 0.6146 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.5041, allocations: 4 kB / 0.6146 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.5044, allocations: 8 kB / 0.6146 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.5044, allocations: 28.03 kB / 0.6146 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.5045, allocations: 35.92 kB / 0.6147 GB, free: 15.83 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.154e-05/0.5045, allocations: 83.27 kB / 0.6148 GB, free: 15.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5045, allocations: 4 kB / 0.6148 GB, free: 15.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.5049, allocations: 79.94 kB / 0.6148 GB, free: 15.67 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * 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): 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.0003448/0.5053, allocations: 147.2 kB / 0.615 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005008/0.5058, allocations: 218.9 kB / 0.6152 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5058, allocations: 0 / 0.6152 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.5061, allocations: 226.7 kB / 0.6154 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.5066, allocations: 51.78 kB / 0.6154 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008669/0.5074, allocations: 479.6 kB / 0.6159 GB, free: 14.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.5077, allocations: 0.7085 MB / 0.6166 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.5082, allocations: 73.39 kB / 0.6167 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.5084, allocations: 55.41 kB / 0.6167 GB, free: 13.66 MB / 462.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5084, allocations: 4 kB / 0.6167 GB, free: 13.66 MB / 462.1 MB Notification: Performance of Templates: time 0.008963/0.5174, allocations: 5.604 MB / 0.6222 GB, free: 8.074 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches