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.001116/0.00112, allocations: 113.4 kB / 17.86 MB, free: 5.629 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.001192/0.001192, allocations: 201.9 kB / 18.77 MB, free: 4.715 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.45 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.2032/0.2032, allocations: 44.16 MB / 336.8 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.69 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1183, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.383/0.5014, allocations: 147.1 MB / 0.6019 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.5029, allocations: 1.011 MB / 0.6029 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.529e-05/0.503, allocations: 0 / 0.6029 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.5033, allocations: 31.81 kB / 0.6029 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006981/0.504, allocations: 207.1 kB / 0.6031 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.5044, allocations: 107.7 kB / 0.6032 GB, free: 12.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.5047, allocations: 207.2 kB / 0.6034 GB, free: 12.51 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.665e-05/0.5047, allocations: 7.984 kB / 0.6034 GB, free: 12.5 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.505, allocations: 91.02 kB / 0.6035 GB, free: 12.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.5051, allocations: 55.77 kB / 0.6035 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.5051, allocations: 0 / 0.6035 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005619/0.5057, allocations: 271.6 kB / 0.6038 GB, free: 12.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.5058, allocations: 15.97 kB / 0.6038 GB, free: 12.08 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.25e-05/0.5059, allocations: 47.8 kB / 0.6038 GB, free: 12.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.5062, allocations: 195.6 kB / 0.604 GB, free: 11.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.5062, allocations: 0 / 0.604 GB, free: 11.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.5062, allocations: 0 / 0.604 GB, free: 11.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.5062, allocations: 0 / 0.604 GB, free: 11.84 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.0005683/0.5068, allocations: 415.9 kB / 0.6044 GB, free: 11.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.5069, allocations: 12.03 kB / 0.6044 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.509, allocations: 184.6 kB / 0.6046 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.5093, allocations: 211.9 kB / 0.6048 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.5093, allocations: 4 kB / 0.6048 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/0.5094, allocations: 18.34 kB / 0.6048 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.5099, allocations: 222.6 kB / 0.6051 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.5099, allocations: 0 / 0.6051 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.51, allocations: 0 / 0.6051 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.51, allocations: 4 kB / 0.6051 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.5104, allocations: 171.9 kB / 0.6052 GB, free: 10.53 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.001112/0.5116, allocations: 0.5796 MB / 0.6058 GB, free: 9.891 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.5119, allocations: 134.5 kB / 0.6059 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.5121, allocations: 76.83 kB / 0.606 GB, free: 9.672 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.5121, allocations: 0 / 0.606 GB, free: 9.672 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.5122, allocations: 34.56 kB / 0.606 GB, free: 9.629 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 2.675e-06/0.5122, allocations: 0 / 0.606 GB, free: 9.629 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.005562/0.5177, allocations: 1.299 MB / 0.6073 GB, free: 8.242 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.5178, allocations: 59.34 kB / 0.6073 GB, free: 8.172 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.005e-05/0.5179, allocations: 109.8 kB / 0.6075 GB, free: 8.055 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.5179, allocations: 29.64 kB / 0.6075 GB, free: 8.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.518, allocations: 99.94 kB / 0.6076 GB, free: 7.918 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.086e-05/0.5181, allocations: 67.03 kB / 0.6076 GB, free: 7.852 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.5182, allocations: 57.69 kB / 0.6077 GB, free: 7.789 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.5183, allocations: 330.8 kB / 0.608 GB, free: 7.457 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.5185, allocations: 63.97 kB / 0.6081 GB, free: 7.395 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.5187, allocations: 110.9 kB / 0.6082 GB, free: 7.277 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003541/0.519, allocations: 188.8 kB / 0.6084 GB, free: 7.082 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.519, allocations: 4 kB / 0.6084 GB, free: 7.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005014/0.5195, allocations: 252 kB / 0.6086 GB, free: 6.824 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.5196, allocations: 4 kB / 0.6086 GB, free: 6.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.5196, allocations: 4 kB / 0.6086 GB, free: 6.816 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.5198, allocations: 56.77 kB / 0.6087 GB, free: 6.758 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.5201, allocations: 56.05 kB / 0.6087 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004186/0.5206, allocations: 0.564 MB / 0.6093 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/0.5208, allocations: 8.031 kB / 0.6093 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.5208, allocations: 24.31 kB / 0.6093 GB, free: 6.082 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.0001341/0.521, allocations: 129.9 kB / 0.6094 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.521, allocations: 7.906 kB / 0.6094 GB, free: 5.938 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008279/0.5219, allocations: 342.8 kB / 0.6098 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.5219, allocations: 7.984 kB / 0.6098 GB, free: 5.586 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5219, allocations: 0 / 0.6098 GB, free: 5.586 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.5219, allocations: 3.984 kB / 0.6098 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.5229, allocations: 0.627 MB / 0.6104 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5229, allocations: 0 / 0.6104 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.5233, allocations: 59.89 kB / 0.6104 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.736e-05/0.5234, allocations: 20.84 kB / 0.6105 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.5234, allocations: 19.95 kB / 0.6105 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009117/0.5244, allocations: 1.268 MB / 0.6117 GB, free: 3.391 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5244, allocations: 4.188 kB / 0.6117 GB, free: 3.387 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007236/0.5251, allocations: 434.5 kB / 0.6121 GB, free: 2.934 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.337e-05/0.5252, allocations: 88.98 kB / 0.6122 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.5252, allocations: 12 kB / 0.6122 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.5255, allocations: 8 kB / 0.6122 GB, free: 2.809 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.5255, allocations: 23.97 kB / 0.6123 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.5256, allocations: 23.98 kB / 0.6123 GB, free: 2.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.408e-05/0.5256, allocations: 91.27 kB / 0.6124 GB, free: 2.672 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5256, allocations: 0 / 0.6124 GB, free: 2.672 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004319/0.5261, allocations: 87.94 kB / 0.6125 GB, free: 2.586 MB / 446.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.0003817/0.5265, allocations: 155.4 kB / 0.6126 GB, free: 2.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005251/0.527, allocations: 203.9 kB / 0.6128 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.527, allocations: 0 / 0.6128 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003565/0.5274, allocations: 226.5 kB / 0.613 GB, free: 1.996 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.5279, allocations: 55.14 kB / 0.6131 GB, free: 1.945 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009502/0.5288, allocations: 0.5344 MB / 0.6136 GB, free: 1.375 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.5291, allocations: 0.7088 MB / 0.6143 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/0.5294, allocations: 63.39 kB / 0.6143 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5294, allocations: 0 / 0.6143 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of Templates: time 0.006819/0.5362, allocations: 3.771 MB / 0.618 GB, free: 12.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/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