Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002958/0.002958, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.447/3.447, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0018/0.0018, allocations: 98.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000573/0.0005731, allocations: 16 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1533, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.7239/0.8772, allocations: 125.6 MB / 0.4884 GB, free: 15.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002546/0.8799, allocations: 0.8146 MB / 0.4892 GB, free: 15.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.88, allocations: 0 / 0.4892 GB, free: 15.1 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003491/0.8804, allocations: 27.88 kB / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.8817, allocations: 215.3 kB / 0.4894 GB, free: 14.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007624/0.8826, allocations: 92.72 kB / 0.4895 GB, free: 14.77 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.883, allocations: 107.8 kB / 0.4896 GB, free: 14.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.076e-05/0.8831, allocations: 8 kB / 0.4896 GB, free: 14.66 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004324/0.8836, allocations: 87.73 kB / 0.4897 GB, free: 14.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.8838, allocations: 39.86 kB / 0.4897 GB, free: 14.53 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.8838, allocations: 4 kB / 0.4897 GB, free: 14.53 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.8853, allocations: 283.7 kB / 0.49 GB, free: 14.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.8855, allocations: 23.89 kB / 0.49 GB, free: 14.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.8856, allocations: 45.64 kB / 0.4901 GB, free: 14.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009309/0.8866, allocations: 192.1 kB / 0.4902 GB, free: 13.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.8866, allocations: 0 / 0.4902 GB, free: 13.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.8866, allocations: 4 kB / 0.4902 GB, free: 13.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.8867, allocations: 0 / 0.4902 GB, free: 13.99 MB / 378.7 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.0008597/0.8875, allocations: 387.7 kB / 0.4906 GB, free: 13.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.8876, allocations: 8.031 kB / 0.4906 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005242/0.8929, allocations: 196.1 kB / 0.4908 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.8935, allocations: 204.2 kB / 0.491 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.8935, allocations: 8 kB / 0.491 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.8937, allocations: 8 kB / 0.491 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.895, allocations: 223.9 kB / 0.4912 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.895, allocations: 0 / 0.4912 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.036e-05/0.8951, allocations: 8 kB / 0.4912 GB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.8952, allocations: 4 kB / 0.4912 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.8963, allocations: 171.8 kB / 0.4914 GB, free: 12.7 MB / 378.7 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.002393/0.8988, allocations: 0.5803 MB / 0.492 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008149/0.8996, allocations: 138.4 kB / 0.4921 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.157e-05/0.8997, allocations: 4 kB / 0.4921 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.8998, allocations: 34.56 kB / 0.4921 GB, free: 11.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 4.569e-06/0.8998, allocations: 0 / 0.4921 GB, free: 11.86 MB / 378.7 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.01367/0.9135, allocations: 1.309 MB / 0.4934 GB, free: 10.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.9136, allocations: 51.41 kB / 0.4935 GB, free: 10.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.9138, allocations: 113.8 kB / 0.4936 GB, free: 10.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.9139, allocations: 29.7 kB / 0.4936 GB, free: 10.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.9141, allocations: 170.4 kB / 0.4938 GB, free: 10.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.9142, allocations: 67.02 kB / 0.4938 GB, free: 10.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/0.9143, allocations: 4 kB / 0.4938 GB, free: 10 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.9145, allocations: 326.8 kB / 0.4941 GB, free: 9.676 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004099/0.9149, allocations: 63.97 kB / 0.4942 GB, free: 9.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004322/0.9154, allocations: 99.58 kB / 0.4943 GB, free: 9.504 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.9158, allocations: 88.86 kB / 0.4944 GB, free: 9.418 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.9159, allocations: 0 / 0.4944 GB, free: 9.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001299/0.9172, allocations: 255.3 kB / 0.4946 GB, free: 9.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.9173, allocations: 4 kB / 0.4946 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.9173, allocations: 4 kB / 0.4946 GB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003922/0.9177, allocations: 52.83 kB / 0.4947 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008522/0.9186, allocations: 59.98 kB / 0.4947 GB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008865/0.9196, allocations: 0.5524 MB / 0.4953 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.9201, allocations: 16.02 kB / 0.4953 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.9203, allocations: 28 kB / 0.4953 GB, free: 8.418 MB / 378.7 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 (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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002796/0.9206, allocations: 133.8 kB / 0.4955 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.9207, allocations: 7.906 kB / 0.4955 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/0.9229, allocations: 347.1 kB / 0.4958 GB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.923, allocations: 4 kB / 0.4958 GB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.923, allocations: 0 / 0.4958 GB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.9231, allocations: 3.953 kB / 0.4958 GB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.9255, allocations: 0.6235 MB / 0.4964 GB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.9255, allocations: 0 / 0.4964 GB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000972/0.9265, allocations: 59.95 kB / 0.4965 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002078/0.9268, allocations: 24.8 kB / 0.4965 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.022e-05/0.9269, allocations: 16.08 kB / 0.4965 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001874/0.9288, allocations: 1.276 MB / 0.4978 GB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.9289, allocations: 8.188 kB / 0.4978 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.9307, allocations: 459.8 kB / 0.4982 GB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.9309, allocations: 88.95 kB / 0.4983 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.247e-05/0.931, allocations: 8 kB / 0.4983 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005655/0.9316, allocations: 7.953 kB / 0.4983 GB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.9318, allocations: 27.91 kB / 0.4983 GB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.9319, allocations: 27.98 kB / 0.4984 GB, free: 5.031 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.9321, allocations: 95.5 kB / 0.4984 GB, free: 4.938 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.9321, allocations: 64 / 0.4984 GB, free: 4.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001034/0.9331, allocations: 84 kB / 0.4985 GB, free: 4.855 MB / 378.7 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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008563/0.934, allocations: 151.1 kB / 0.4987 GB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.9353, allocations: 195.8 kB / 0.4989 GB, free: 4.508 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/0.9354, allocations: 0 / 0.4989 GB, free: 4.508 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007706/0.9362, allocations: 218.6 kB / 0.4991 GB, free: 4.281 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.9372, allocations: 44.3 kB / 0.4991 GB, free: 4.238 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.9402, allocations: 0.5957 MB / 0.4997 GB, free: 3.605 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.9409, allocations: 0.7088 MB / 0.5004 GB, free: 2.871 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006504/0.9416, allocations: 55.41 kB / 0.5004 GB, free: 2.816 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.9416, allocations: 0 / 0.5004 GB, free: 2.816 MB / 378.7 MB Notification: Performance of Templates: time 0.0163/0.9579, allocations: 3.947 MB / 0.5043 GB, free: 14.88 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches