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.0009365/0.0009365, allocations: 177.5 kB / 16.41 MB, free: 5.707 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.262/1.262, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007086/0.0007087, allocations: 90.28 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002759, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1863, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.2842/0.4705, allocations: 136.6 MB / 0.4991 GB, free: 1.582 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008934/0.4714, allocations: 0.9099 MB / 0.5 GB, free: 1.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.4715, allocations: 0 / 0.5 GB, free: 1.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.4717, allocations: 26.41 kB / 0.5 GB, free: 1.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.4721, allocations: 204.7 kB / 0.5002 GB, free: 1.559 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.4724, allocations: 94.36 kB / 0.5003 GB, free: 1.559 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001832/0.4726, allocations: 175.8 kB / 0.5005 GB, free: 1.559 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.4726, allocations: 6.25 kB / 0.5005 GB, free: 1.559 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.4728, allocations: 87.53 kB / 0.5006 GB, free: 1.559 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.244e-05/0.4729, allocations: 54.66 kB / 0.5006 GB, free: 1.555 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.4729, allocations: 2.906 kB / 0.5006 GB, free: 1.555 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000408/0.4733, allocations: 267.6 kB / 0.5009 GB, free: 1.551 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.327e-05/0.4734, allocations: 25.73 kB / 0.5009 GB, free: 1.547 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.377e-05/0.4734, allocations: 40.02 kB / 0.501 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002418/0.4737, allocations: 205.5 kB / 0.5012 GB, free: 1.504 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.4737, allocations: 0 / 0.5012 GB, free: 1.504 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4737, allocations: 0 / 0.5012 GB, free: 1.504 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.4737, allocations: 2.906 kB / 0.5012 GB, free: 1.504 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.0005196/0.4742, allocations: 386.9 kB / 0.5015 GB, free: 17.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.4743, allocations: 9.406 kB / 0.5015 GB, free: 17.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001947/0.4762, allocations: 190.4 kB / 0.5017 GB, free: 17.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.4764, allocations: 206.3 kB / 0.5019 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.4765, allocations: 2.406 kB / 0.5019 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.4765, allocations: 11.06 kB / 0.5019 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.477, allocations: 228.6 kB / 0.5021 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.477, allocations: 0 / 0.5021 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.477, allocations: 3.438 kB / 0.5022 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.477, allocations: 6.578 kB / 0.5022 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003911/0.4774, allocations: 173.3 kB / 0.5023 GB, free: 16.85 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.0008894/0.4783, allocations: 0.5814 MB / 0.5029 GB, free: 16.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.4786, allocations: 133.9 kB / 0.503 GB, free: 16.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.4788, allocations: 70.47 kB / 0.5031 GB, free: 16.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.4788, allocations: 8.859 kB / 0.5031 GB, free: 16.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.4788, allocations: 39.92 kB / 0.5031 GB, free: 16.31 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.4788, allocations: 0 / 0.5031 GB, free: 16.31 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.004893/0.4837, allocations: 1.307 MB / 0.5044 GB, free: 15.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.4838, allocations: 59.89 kB / 0.5045 GB, free: 15.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.623e-05/0.4838, allocations: 109 kB / 0.5046 GB, free: 15.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.4839, allocations: 28.95 kB / 0.5046 GB, free: 15.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.779e-05/0.4839, allocations: 99.28 kB / 0.5047 GB, free: 15.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.484, allocations: 63.84 kB / 0.5048 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-05/0.484, allocations: 5.688 kB / 0.5048 GB, free: 15.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4841, allocations: 327.6 kB / 0.5051 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.4843, allocations: 69.75 kB / 0.5051 GB, free: 15.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.4844, allocations: 98.73 kB / 0.5052 GB, free: 15.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.4846, allocations: 84.22 kB / 0.5053 GB, free: 15.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4846, allocations: 0 / 0.5053 GB, free: 15.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000451/0.4851, allocations: 257 kB / 0.5056 GB, free: 15.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.4851, allocations: 11.97 kB / 0.5056 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.4851, allocations: 0 / 0.5056 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.4853, allocations: 53.47 kB / 0.5056 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.4856, allocations: 53.12 kB / 0.5057 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00036/0.4859, allocations: 0.5647 MB / 0.5062 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.4861, allocations: 12.2 kB / 0.5062 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.4862, allocations: 28.08 kB / 0.5063 GB, free: 14.54 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.0001126/0.4863, allocations: 128.5 kB / 0.5064 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.195e-05/0.4863, allocations: 9.281 kB / 0.5064 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007389/0.4871, allocations: 345.1 kB / 0.5067 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4871, allocations: 6.859 kB / 0.5067 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4871, allocations: 0 / 0.5067 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4871, allocations: 3.312 kB / 0.5067 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008408/0.488, allocations: 0.6331 MB / 0.5073 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.488, allocations: 0 / 0.5073 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.4883, allocations: 61.23 kB / 0.5074 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.006e-05/0.4884, allocations: 23.2 kB / 0.5074 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.4884, allocations: 11.41 kB / 0.5074 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007706/0.4892, allocations: 1.264 MB / 0.5087 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4892, allocations: 4.062 kB / 0.5087 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006499/0.4899, allocations: 437.5 kB / 0.5091 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.4899, allocations: 88.08 kB / 0.5092 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.49, allocations: 2.469 kB / 0.5092 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.4902, allocations: 8.969 kB / 0.5092 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.4902, allocations: 32 kB / 0.5092 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.4903, allocations: 31.23 kB / 0.5093 GB, free: 12.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.64e-05/0.4903, allocations: 89.52 kB / 0.5093 GB, free: 12.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4903, allocations: 0 / 0.5093 GB, free: 12.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003435/0.4907, allocations: 77.83 kB / 0.5094 GB, free: 12.36 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.0003048/0.491, allocations: 158 kB / 0.5096 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000421/0.4914, allocations: 198.8 kB / 0.5098 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4914, allocations: 4.188 kB / 0.5098 GB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002818/0.4917, allocations: 222.2 kB / 0.51 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.4921, allocations: 40.34 kB / 0.51 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007546/0.4929, allocations: 0.6028 MB / 0.5106 GB, free: 11.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.4932, allocations: 0.7061 MB / 0.5113 GB, free: 11.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.4934, allocations: 54.5 kB / 0.5113 GB, free: 11.07 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4934, allocations: 0.5312 kB / 0.5113 GB, free: 11.07 MB / 394.7 MB Notification: Performance of Templates: time 0.006082/0.4995, allocations: 3.788 MB / 0.515 GB, free: 10.8 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