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.001441/0.001441, allocations: 175.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0007644/0.0007644, allocations: 80.25 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003193, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2519, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.372/0.6239, allocations: 136.6 MB / 0.4997 GB, free: 1.539 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.625, allocations: 0.9008 MB / 0.5005 GB, free: 1.531 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.054e-05/0.6251, allocations: 6.969 kB / 0.5006 GB, free: 1.527 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002107/0.6253, allocations: 22.19 kB / 0.5006 GB, free: 1.527 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004382/0.6257, allocations: 200.4 kB / 0.5008 GB, free: 1.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.626, allocations: 95.92 kB / 0.5009 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.6262, allocations: 187.4 kB / 0.501 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.6263, allocations: 3.312 kB / 0.501 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.6265, allocations: 80.36 kB / 0.5011 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.827e-05/0.6266, allocations: 53.77 kB / 0.5012 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.6266, allocations: 5.125 kB / 0.5012 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004562/0.627, allocations: 269.5 kB / 0.5014 GB, free: 1.508 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.829e-05/0.6271, allocations: 23.36 kB / 0.5015 GB, free: 1.508 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.6273, allocations: 63.98 kB / 0.5015 GB, free: 17.48 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.6275, allocations: 204 kB / 0.5017 GB, free: 17.46 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.6276, allocations: 2.875 kB / 0.5017 GB, free: 17.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6276, allocations: 1.594 kB / 0.5017 GB, free: 17.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.6276, allocations: 0 / 0.5017 GB, free: 17.46 MB / 394.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.0004277/0.628, allocations: 386.9 kB / 0.5021 GB, free: 17.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.6281, allocations: 10.5 kB / 0.5021 GB, free: 17.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001832/0.6299, allocations: 195.8 kB / 0.5023 GB, free: 17.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.6301, allocations: 204.9 kB / 0.5025 GB, free: 16.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.6301, allocations: 10.03 kB / 0.5025 GB, free: 16.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.6302, allocations: 8.406 kB / 0.5025 GB, free: 16.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.6307, allocations: 223.6 kB / 0.5027 GB, free: 16.81 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.6307, allocations: 0 / 0.5027 GB, free: 16.81 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.6307, allocations: 6.312 kB / 0.5027 GB, free: 16.81 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.6307, allocations: 2.938 kB / 0.5027 GB, free: 16.81 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.6311, allocations: 169.6 kB / 0.5029 GB, free: 16.81 MB / 394.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.0009248/0.6321, allocations: 0.5927 MB / 0.5035 GB, free: 16.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.6324, allocations: 131.1 kB / 0.5036 GB, free: 16.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.6325, allocations: 75.22 kB / 0.5037 GB, free: 16.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.6325, allocations: 2.906 kB / 0.5037 GB, free: 16.31 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.6326, allocations: 40.12 kB / 0.5037 GB, free: 16.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.6326, allocations: 0 / 0.5037 GB, free: 16.27 MB / 394.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.004706/0.6373, allocations: 1.301 MB / 0.505 GB, free: 15.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.6373, allocations: 60.09 kB / 0.505 GB, free: 15.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.461e-05/0.6374, allocations: 108.2 kB / 0.5051 GB, free: 15.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.6374, allocations: 29.2 kB / 0.5052 GB, free: 15.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.369e-05/0.6375, allocations: 104.4 kB / 0.5053 GB, free: 15.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.435e-05/0.6376, allocations: 64.61 kB / 0.5053 GB, free: 15.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.814e-05/0.6376, allocations: 3.562 kB / 0.5053 GB, free: 15.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.6377, allocations: 318.9 kB / 0.5056 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.6378, allocations: 69.31 kB / 0.5057 GB, free: 15.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.638, allocations: 104.7 kB / 0.5058 GB, free: 15.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.6383, allocations: 188.4 kB / 0.506 GB, free: 15.06 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.6383, allocations: 2.906 kB / 0.506 GB, free: 15.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004333/0.6387, allocations: 256.1 kB / 0.5062 GB, free: 15.01 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.6388, allocations: 5.406 kB / 0.5062 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.6388, allocations: 3.031 kB / 0.5062 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000162/0.6389, allocations: 55.59 kB / 0.5063 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.6393, allocations: 47.09 kB / 0.5063 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003996/0.6397, allocations: 0.5751 MB / 0.5069 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.6398, allocations: 13.81 kB / 0.5069 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-05/0.6399, allocations: 22.27 kB / 0.5069 GB, free: 14.47 MB / 394.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.0001182/0.64, allocations: 129.1 kB / 0.507 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.085e-05/0.6401, allocations: 9.094 kB / 0.507 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007575/0.6408, allocations: 343.5 kB / 0.5074 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6408, allocations: 6.875 kB / 0.5074 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.6408, allocations: 0 / 0.5074 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.6409, allocations: 2.734 kB / 0.5074 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000845/0.6417, allocations: 0.632 MB / 0.508 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.6417, allocations: 3.594 kB / 0.508 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.642, allocations: 63.33 kB / 0.5081 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-05/0.6421, allocations: 18.09 kB / 0.5081 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.6421, allocations: 14.64 kB / 0.5081 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008764/0.643, allocations: 1.265 MB / 0.5093 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.643, allocations: 5.094 kB / 0.5093 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006115/0.6437, allocations: 436.3 kB / 0.5098 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.6437, allocations: 90.94 kB / 0.5098 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.949e-05/0.6438, allocations: 5.719 kB / 0.5098 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.644, allocations: 6.344 kB / 0.5098 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.644, allocations: 30.97 kB / 0.5099 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-05/0.6441, allocations: 26.88 kB / 0.5099 GB, free: 12.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.613e-05/0.6441, allocations: 85.91 kB / 0.51 GB, free: 12.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6441, allocations: 0 / 0.51 GB, free: 12.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003744/0.6445, allocations: 80.48 kB / 0.5101 GB, free: 12.3 MB / 394.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.0003526/0.6449, allocations: 157.9 kB / 0.5102 GB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004331/0.6453, allocations: 203.8 kB / 0.5104 GB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6453, allocations: 0 / 0.5104 GB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002964/0.6456, allocations: 223.7 kB / 0.5106 GB, free: 12.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.6461, allocations: 49.97 kB / 0.5107 GB, free: 12.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009474/0.647, allocations: 0.5891 MB / 0.5112 GB, free: 11.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.6473, allocations: 0.705 MB / 0.5119 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.6476, allocations: 59.22 kB / 0.512 GB, free: 11 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.6476, allocations: 0 / 0.512 GB, free: 11 MB / 394.7 MB Notification: Performance of Templates: time 0.006566/0.6542, allocations: 3.782 MB / 0.5157 GB, free: 10.74 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/jenkins/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