Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.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 3.2.3+maint.om/package.mo", uses=false) 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 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: "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001208/0.001208, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001683, allocations: 59.89 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.0962, allocations: 46.62 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3758/0.4721, allocations: 150.6 MB / 0.5129 GB, free: 8.926 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.4737, allocations: 0.9675 MB / 0.5139 GB, free: 7.957 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.866e-05/0.4738, allocations: 0 / 0.5139 GB, free: 7.957 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.4741, allocations: 31.75 kB / 0.5139 GB, free: 7.926 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007669/0.4749, allocations: 238.7 kB / 0.5141 GB, free: 7.691 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.4753, allocations: 132.2 kB / 0.5143 GB, free: 7.562 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.4756, allocations: 163.3 kB / 0.5144 GB, free: 7.402 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.01e-05/0.4756, allocations: 9.969 kB / 0.5144 GB, free: 7.395 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.4759, allocations: 95.56 kB / 0.5145 GB, free: 7.301 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.476, allocations: 43.83 kB / 0.5146 GB, free: 7.258 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.476, allocations: 8 kB / 0.5146 GB, free: 7.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005993/0.4766, allocations: 267.7 kB / 0.5148 GB, free: 6.988 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.248e-05/0.4767, allocations: 15.98 kB / 0.5148 GB, free: 6.973 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.022e-05/0.4768, allocations: 47.78 kB / 0.5149 GB, free: 6.926 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000551/0.4774, allocations: 285.8 kB / 0.5152 GB, free: 6.652 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.4774, allocations: 0 / 0.5152 GB, free: 6.652 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.07e-06/0.4774, allocations: 3.984 kB / 0.5152 GB, free: 6.648 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.4774, allocations: 3.938 kB / 0.5152 GB, free: 6.645 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.0005924/0.478, allocations: 403 kB / 0.5155 GB, free: 6.203 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.478, allocations: 8.031 kB / 0.5156 GB, free: 6.195 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.344e-05/0.4781, allocations: 46.75 kB / 0.5156 GB, free: 6.141 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002015/0.4801, allocations: 188.6 kB / 0.5158 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.4805, allocations: 204.2 kB / 0.516 GB, free: 5.719 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.4805, allocations: 11.94 kB / 0.516 GB, free: 5.707 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.4806, allocations: 7.953 kB / 0.516 GB, free: 5.699 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.4811, allocations: 220.1 kB / 0.5162 GB, free: 5.469 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.4811, allocations: 4 kB / 0.5162 GB, free: 5.465 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.4812, allocations: 4 kB / 0.5162 GB, free: 5.461 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.4812, allocations: 7.922 kB / 0.5162 GB, free: 5.453 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.4817, allocations: 171.8 kB / 0.5164 GB, free: 5.285 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.001119/0.4828, allocations: 0.5878 MB / 0.517 GB, free: 4.641 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.4832, allocations: 138.5 kB / 0.5171 GB, free: 4.496 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.4833, allocations: 64.83 kB / 0.5171 GB, free: 4.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.4834, allocations: 4 kB / 0.5172 GB, free: 4.426 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.4834, allocations: 38.56 kB / 0.5172 GB, free: 4.379 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.784e-06/0.4834, allocations: 0 / 0.5172 GB, free: 4.379 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.005257/0.4887, allocations: 1.302 MB / 0.5185 GB, free: 2.988 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.4888, allocations: 59.41 kB / 0.5185 GB, free: 2.918 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.801e-05/0.4889, allocations: 113.8 kB / 0.5186 GB, free: 2.797 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.4889, allocations: 29.7 kB / 0.5187 GB, free: 2.762 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.369e-05/0.489, allocations: 104 kB / 0.5188 GB, free: 2.656 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.4891, allocations: 63.44 kB / 0.5188 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.4892, allocations: 53.69 kB / 0.5189 GB, free: 2.535 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4893, allocations: 322.8 kB / 0.5192 GB, free: 2.211 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.4895, allocations: 67.97 kB / 0.5192 GB, free: 2.145 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.4897, allocations: 111.2 kB / 0.5193 GB, free: 2.023 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.4901, allocations: 183.3 kB / 0.5195 GB, free: 1.832 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.4901, allocations: 7.938 kB / 0.5195 GB, free: 1.824 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005146/0.4906, allocations: 254.2 kB / 0.5198 GB, free: 1.566 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4906, allocations: 11.98 kB / 0.5198 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4907, allocations: 0 / 0.5198 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001918/0.4908, allocations: 48.83 kB / 0.5198 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.4912, allocations: 55.91 kB / 0.5199 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005112/0.4917, allocations: 0.5681 MB / 0.5204 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.4919, allocations: 4 kB / 0.5204 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.4919, allocations: 27.98 kB / 0.5205 GB, free: 0.8242 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.0001327/0.4921, allocations: 125.8 kB / 0.5206 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.4921, allocations: 7.953 kB / 0.5206 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007871/0.4929, allocations: 348.1 kB / 0.5209 GB, free: 344 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.4929, allocations: 3.938 kB / 0.5209 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.493, allocations: 4 kB / 0.5209 GB, free: 336 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.493, allocations: 3.984 kB / 0.5209 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.4941, allocations: 0.6199 MB / 0.5215 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.4941, allocations: 2 kB / 0.5215 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.4944, allocations: 63.89 kB / 0.5216 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.107e-05/0.4945, allocations: 20.84 kB / 0.5216 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/0.4946, allocations: 15.98 kB / 0.5216 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001273/0.4959, allocations: 1.371 MB / 0.523 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.4959, allocations: 0 / 0.523 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.4966, allocations: 438.8 kB / 0.5234 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.4967, allocations: 92.95 kB / 0.5235 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.4968, allocations: 8.859 kB / 0.5235 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.497, allocations: 4.062 kB / 0.5235 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.778e-05/0.497, allocations: 31.91 kB / 0.5235 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.055e-05/0.4971, allocations: 31.98 kB / 0.5236 GB, free: 13.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.415e-05/0.4972, allocations: 83.28 kB / 0.5236 GB, free: 13.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4972, allocations: 0 / 0.5236 GB, free: 13.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004221/0.4976, allocations: 75.94 kB / 0.5237 GB, free: 13.23 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.001367/0.499, allocations: 1.009 MB / 0.5247 GB, free: 12.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005355/0.4995, allocations: 211.8 kB / 0.5249 GB, free: 11.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4995, allocations: 0 / 0.5249 GB, free: 11.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003625/0.4999, allocations: 222.8 kB / 0.5251 GB, free: 11.74 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.5004, allocations: 45.92 kB / 0.5252 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002873/0.5033, allocations: 2.074 MB / 0.5272 GB, free: 9.504 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.5036, allocations: 0.7085 MB / 0.5279 GB, free: 8.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003049/0.504, allocations: 73.39 kB / 0.5279 GB, free: 8.699 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/0.5042, allocations: 71.39 kB / 0.528 GB, free: 8.629 MB / 462.1 MB Notification: Performance of SimCode: time 3.9e-07/0.5042, allocations: 0 / 0.528 GB, free: 8.629 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.5432, allocations: 7.322 MB / 0.5352 GB, free: 1.258 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.49, allocations: 8.047 kB / 0.5352 GB, free: 1.25 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches