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.001761/0.001761, allocations: 105.5 kB / 17.58 MB, free: 5.418 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.002294/0.002294, allocations: 187.9 kB / 18.5 MB, free: 4.512 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.507/2.507, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001398/0.001399, allocations: 51.91 kB / 280.7 MB, free: 3.102 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1265, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.4908/0.6174, allocations: 150.6 MB / 477.9 MB, free: 392 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.619, allocations: 0.969 MB / 478.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.6192, allocations: 4 kB / 478.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.6196, allocations: 35.75 kB / 479 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008667/0.6205, allocations: 246 kB / 479.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.6209, allocations: 116.2 kB / 479.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.6212, allocations: 161 kB / 479.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.678e-05/0.6213, allocations: 8 kB / 479.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.6216, allocations: 97.39 kB / 479.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.6217, allocations: 43.83 kB / 479.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.6218, allocations: 8 kB / 479.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007554/0.6225, allocations: 259.7 kB / 479.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.507e-05/0.6226, allocations: 23.92 kB / 479.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.6228, allocations: 51.72 kB / 479.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006929/0.6235, allocations: 275.4 kB / 480.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.6235, allocations: 0 / 480.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.6235, allocations: 0 / 480.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.6235, allocations: 4 kB / 480.2 MB, free: 14.12 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007172/0.6242, allocations: 416 kB / 480.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.6243, allocations: 8.031 kB / 480.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.6244, allocations: 38.75 kB / 480.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.6268, allocations: 193.9 kB / 480.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.6272, allocations: 208.2 kB / 481.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.6272, allocations: 13.72 kB / 481.1 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-05/0.6273, allocations: 8 kB / 481.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.6278, allocations: 216.1 kB / 481.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.6279, allocations: 3.938 kB / 481.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/0.6279, allocations: 8 kB / 481.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.6279, allocations: 0 / 481.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/0.6284, allocations: 179.3 kB / 481.5 MB, free: 12.75 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.001363/0.6298, allocations: 0.5844 MB / 482.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004076/0.6302, allocations: 142.5 kB / 482.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.6304, allocations: 68.83 kB / 482.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.6304, allocations: 4.25 kB / 482.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.6305, allocations: 30.56 kB / 482.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.6305, allocations: 0 / 482.3 MB, free: 11.85 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.00865/0.6391, allocations: 1.306 MB / 483.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.6393, allocations: 59.41 kB / 483.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.6394, allocations: 113.8 kB / 483.8 MB, free: 10.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.6395, allocations: 33.7 kB / 483.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.6396, allocations: 91.94 kB / 483.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.6398, allocations: 67.05 kB / 484 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.64, allocations: 57.59 kB / 484 MB, free: 9.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.6402, allocations: 322.8 kB / 484.3 MB, free: 9.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.6405, allocations: 67.91 kB / 484.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.6408, allocations: 108.6 kB / 484.5 MB, free: 9.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000626/0.6415, allocations: 183.3 kB / 484.7 MB, free: 9.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.6415, allocations: 0 / 484.7 MB, free: 9.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009455/0.6425, allocations: 262.2 kB / 485 MB, free: 9.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.6425, allocations: 8 kB / 485 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.6425, allocations: 0 / 485 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/0.6429, allocations: 48.83 kB / 485 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.6435, allocations: 55.89 kB / 485.1 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008525/0.6444, allocations: 0.568 MB / 485.6 MB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.6447, allocations: 4.031 kB / 485.6 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.37e-05/0.6448, allocations: 31.94 kB / 485.7 MB, free: 8.289 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.000346/0.6452, allocations: 125.8 kB / 485.8 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.6453, allocations: 8.781 kB / 485.8 MB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.6468, allocations: 355.3 kB / 486.1 MB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.6468, allocations: 3.938 kB / 486.1 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.6469, allocations: 0 / 486.1 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.6469, allocations: 0 / 486.1 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/0.6487, allocations: 0.6274 MB / 486.8 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.6487, allocations: 0 / 486.8 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.6493, allocations: 60.05 kB / 486.8 MB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001283/0.6494, allocations: 28.78 kB / 486.9 MB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.167e-05/0.6495, allocations: 15.98 kB / 486.9 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.6511, allocations: 1.359 MB / 488.2 MB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.6512, allocations: 3.938 kB / 488.2 MB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.6525, allocations: 438.7 kB / 488.7 MB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.6526, allocations: 81.02 kB / 488.7 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.608e-05/0.6527, allocations: 8 kB / 488.8 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.6531, allocations: 11.98 kB / 488.8 MB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.832e-05/0.6532, allocations: 27.98 kB / 488.8 MB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.143e-05/0.6533, allocations: 27.98 kB / 488.8 MB, free: 4.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.778e-05/0.6534, allocations: 91.25 kB / 488.9 MB, free: 4.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6534, allocations: 0 / 488.9 MB, free: 4.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008319/0.6542, allocations: 79.94 kB / 489 MB, free: 4.691 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 (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.002277/0.6565, allocations: 1.017 MB / 490 MB, free: 3.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009109/0.6575, allocations: 215.8 kB / 490.2 MB, free: 3.426 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6575, allocations: 4 kB / 490.2 MB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007333/0.6583, allocations: 222.9 kB / 490.4 MB, free: 3.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000865/0.6591, allocations: 45.53 kB / 490.5 MB, free: 3.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008361/0.6675, allocations: 2.053 MB / 492.5 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000572/0.6681, allocations: 0.7046 MB / 493.2 MB, free: 248 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009124/0.6691, allocations: 81.77 kB / 493.3 MB, free: 168 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.6696, allocations: 63.41 kB / 493.4 MB, free: 104 kB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.6696, allocations: 4 kB / 493.4 MB, free: 100 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05331/0.7229, allocations: 7.243 MB / 0.4889 GB, free: 8.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.05/19.77, allocations: 15.67 kB / 0.4889 GB, free: 8.781 MB / 398.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