Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.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.IdealGasN2Mix,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2Mix,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2Mix",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.001676/0.001676, allocations: 104 kB / 17.58 MB, free: 5.438 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.001956/0.001956, allocations: 187.9 kB / 18.51 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.472/2.472, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002214/0.002214, allocations: 52.3 kB / 280.7 MB, free: 3.105 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1396, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2Mix): time 0.5379/0.6775, allocations: 150.8 MB / 478.2 MB, free: 244 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.68, allocations: 1.5 MB / 479.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.173e-05/0.6801, allocations: 0 / 479.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003936/0.6805, allocations: 51.73 kB / 479.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009525/0.6815, allocations: 391.7 kB / 480.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.6823, allocations: 163.4 kB / 480.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.6826, allocations: 179.3 kB / 480.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.462e-05/0.6827, allocations: 4 kB / 480.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.683, allocations: 81.47 kB / 480.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.6831, allocations: 63.8 kB / 480.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.6832, allocations: 8 kB / 480.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.6845, allocations: 0.569 MB / 481.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.235e-05/0.6846, allocations: 31.89 kB / 481.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.573e-05/0.6847, allocations: 49.83 kB / 481.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006928/0.6854, allocations: 391.1 kB / 481.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.6854, allocations: 0 / 481.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.6854, allocations: 0 / 481.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.6854, allocations: 0 / 481.7 MB, free: 12.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007253/0.6861, allocations: 436.1 kB / 482.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.6862, allocations: 15.97 kB / 482.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.202e-05/0.6862, allocations: 38.73 kB / 482.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002571/0.6888, allocations: 194 kB / 482.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.6891, allocations: 204.5 kB / 482.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.6892, allocations: 7.938 kB / 482.5 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.6892, allocations: 11.98 kB / 482.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005309/0.6898, allocations: 205.5 kB / 482.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.6898, allocations: 4 kB / 482.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.6898, allocations: 4 kB / 482.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.6899, allocations: 4 kB / 482.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006993/0.6906, allocations: 239.8 kB / 483 MB, free: 11.36 MB / 382.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.002071/0.6927, allocations: 0.6718 MB / 483.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004917/0.6932, allocations: 194.4 kB / 483.9 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.6934, allocations: 92.81 kB / 484 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/0.6937, allocations: 93.09 kB / 484 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.6937, allocations: 34.56 kB / 484.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.134e-06/0.6937, allocations: 4 kB / 484.1 MB, free: 10.19 MB / 382.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.006681/0.7004, allocations: 1.541 MB / 485.6 MB, free: 8.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.7005, allocations: 51.41 kB / 485.7 MB, free: 8.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.7007, allocations: 113.8 kB / 485.8 MB, free: 8.355 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.7007, allocations: 29.7 kB / 485.8 MB, free: 8.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.7008, allocations: 104.2 kB / 485.9 MB, free: 8.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.979e-05/0.7009, allocations: 59.11 kB / 486 MB, free: 8.156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.701, allocations: 57.45 kB / 486 MB, free: 8.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.7012, allocations: 318.8 kB / 486.3 MB, free: 7.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.7014, allocations: 87.95 kB / 486.4 MB, free: 7.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.7017, allocations: 127.3 kB / 486.6 MB, free: 7.551 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000517/0.7022, allocations: 219.3 kB / 486.8 MB, free: 7.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.7023, allocations: 3.938 kB / 486.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000779/0.7031, allocations: 286.2 kB / 487.1 MB, free: 7.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.7031, allocations: 8 kB / 487.1 MB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.7031, allocations: 3.938 kB / 487.1 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.7033, allocations: 24.84 kB / 487.1 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005197/0.7038, allocations: 55.89 kB / 487.1 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004607/0.7043, allocations: 0.5369 MB / 487.7 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.7047, allocations: 8 kB / 487.7 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.7047, allocations: 7.984 kB / 487.7 MB, free: 6.359 MB / 382.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.00018/0.7049, allocations: 137.7 kB / 487.8 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.514e-05/0.705, allocations: 7.906 kB / 487.8 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009161/0.7059, allocations: 323.6 kB / 488.2 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.7059, allocations: 0 / 488.2 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.706, allocations: 11.94 kB / 488.2 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.706, allocations: 0 / 488.2 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.7074, allocations: 0.6679 MB / 488.8 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.7074, allocations: 0 / 488.8 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000503/0.7079, allocations: 56.05 kB / 488.9 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.842e-05/0.708, allocations: 24.78 kB / 488.9 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.708, allocations: 11.98 kB / 488.9 MB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.7093, allocations: 1.364 MB / 490.3 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.7093, allocations: 0 / 490.3 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009595/0.7103, allocations: 457.8 kB / 490.7 MB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.461e-05/0.7104, allocations: 88.98 kB / 490.8 MB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.7104, allocations: 0 / 490.8 MB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.7108, allocations: 20.92 kB / 490.8 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.7109, allocations: 19.92 kB / 490.9 MB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.7109, allocations: 7.984 kB / 490.9 MB, free: 2.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.235e-05/0.711, allocations: 91.27 kB / 491 MB, free: 2.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.711, allocations: 0 / 491 MB, free: 2.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005878/0.7116, allocations: 123.9 kB / 491.1 MB, free: 2.703 MB / 382.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 (19): * Single equations (assignments): 18 * 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.002028/0.7137, allocations: 1.125 MB / 492.2 MB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007491/0.7144, allocations: 247.8 kB / 492.4 MB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.7144, allocations: 0 / 492.4 MB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005523/0.715, allocations: 230.6 kB / 492.7 MB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.7156, allocations: 52.31 kB / 492.7 MB, free: 1.004 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.7193, allocations: 2.131 MB / 494.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.7197, allocations: 0.7046 MB / 495.6 MB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004464/0.7201, allocations: 57.33 kB / 495.6 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.7203, allocations: 43.41 kB / 495.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.7203, allocations: 0 / 495.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04129/0.7616, allocations: 7.942 MB / 0.4918 GB, free: 5.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.51/20.27, allocations: 8 kB / 0.4918 GB, free: 5.902 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_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_IdealGasN2Mix.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches