Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_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.001442/0.001442, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001675/0.001675, allocations: 183.8 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2324/0.2324, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 63.84 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3545, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2Mix): time 0.1648/0.5193, allocations: 149.6 MB / 0.6645 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002052/0.5214, allocations: 1.593 MB / 0.666 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.451e-05/0.5215, allocations: 3.938 kB / 0.666 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0003863/0.5219, allocations: 51.72 kB / 0.6661 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.523, allocations: 398.1 kB / 0.6665 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.5236, allocations: 171.4 kB / 0.6666 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002617/0.5238, allocations: 187.2 kB / 0.6668 GB, free: 3.609 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.482e-05/0.5239, allocations: 11.94 kB / 0.6668 GB, free: 3.598 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.5241, allocations: 79.69 kB / 0.6669 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.5242, allocations: 51.77 kB / 0.667 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.5242, allocations: 8 kB / 0.667 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.5254, allocations: 0.6002 MB / 0.6675 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.508e-05/0.5255, allocations: 23.97 kB / 0.6676 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 7.161e-05/0.5256, allocations: 51.78 kB / 0.6676 GB, free: 2.785 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007029/0.5263, allocations: 402.6 kB / 0.668 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.5263, allocations: 4 kB / 0.668 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.154e-06/0.5263, allocations: 0 / 0.668 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.5263, allocations: 0 / 0.668 GB, free: 2.391 MB / 0.5137 GB 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.0006407/0.527, allocations: 434.9 kB / 0.6684 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.527, allocations: 8.031 kB / 0.6684 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.5271, allocations: 46.75 kB / 0.6685 GB, free: 1.855 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002321/0.5294, allocations: 196.6 kB / 0.6687 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.5297, allocations: 211.6 kB / 0.6689 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.5298, allocations: 8 kB / 0.6689 GB, free: 1.41 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.5298, allocations: 4 kB / 0.6689 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004948/0.5303, allocations: 215.5 kB / 0.6691 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.5303, allocations: 0 / 0.6691 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.5304, allocations: 3.938 kB / 0.6691 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.5304, allocations: 4 kB / 0.6691 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005856/0.531, allocations: 239.8 kB / 0.6693 GB, free: 0.9492 MB / 0.5137 GB 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.001894/0.5329, allocations: 0.6595 MB / 0.67 GB, free: 236 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.5334, allocations: 190.5 kB / 0.6701 GB, free: 36 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.5336, allocations: 92.75 kB / 0.6702 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/0.5338, allocations: 89.09 kB / 0.6703 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.5338, allocations: 38.56 kB / 0.6703 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.764e-06/0.5338, allocations: 0 / 0.6703 GB, free: 15.79 MB / 0.5294 GB 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.00591/0.5397, allocations: 1.538 MB / 0.6719 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.5398, allocations: 55.41 kB / 0.6719 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.224e-05/0.5399, allocations: 117.8 kB / 0.672 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.5399, allocations: 29.7 kB / 0.672 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.54, allocations: 100.4 kB / 0.6721 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.5401, allocations: 71.36 kB / 0.6722 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.5402, allocations: 41.7 kB / 0.6722 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5403, allocations: 318.8 kB / 0.6726 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.5405, allocations: 91.81 kB / 0.6726 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.5408, allocations: 131.4 kB / 0.6728 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004578/0.5413, allocations: 222.3 kB / 0.673 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.5413, allocations: 0 / 0.673 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006527/0.5419, allocations: 290.2 kB / 0.6733 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.542, allocations: 6.812 kB / 0.6733 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.542, allocations: 4 kB / 0.6733 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001535/0.5421, allocations: 24.83 kB / 0.6733 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.5426, allocations: 60 kB / 0.6733 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004882/0.5431, allocations: 0.5406 MB / 0.6739 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.5434, allocations: 4 kB / 0.6739 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.5435, allocations: 11.98 kB / 0.6739 GB, free: 11.95 MB / 0.5294 GB 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.0001457/0.5436, allocations: 129.9 kB / 0.674 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.5437, allocations: 11.94 kB / 0.674 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007816/0.5445, allocations: 313.5 kB / 0.6743 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.5445, allocations: 7.938 kB / 0.6743 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5446, allocations: 0 / 0.6743 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.5446, allocations: 4 kB / 0.6743 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.5458, allocations: 0.6718 MB / 0.675 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5458, allocations: 8.031 kB / 0.675 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004545/0.5462, allocations: 55.89 kB / 0.6751 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.381e-05/0.5463, allocations: 24.84 kB / 0.6751 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.5464, allocations: 4 kB / 0.6751 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009116/0.5473, allocations: 1.363 MB / 0.6764 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.5473, allocations: 0 / 0.6764 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008625/0.5482, allocations: 458.7 kB / 0.6768 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.531e-05/0.5482, allocations: 89.05 kB / 0.6769 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.5483, allocations: 3.984 kB / 0.6769 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.5486, allocations: 16.06 kB / 0.677 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.5487, allocations: 15.97 kB / 0.677 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.572e-05/0.5487, allocations: 8 kB / 0.677 GB, free: 8.504 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.157e-05/0.5488, allocations: 91.27 kB / 0.6771 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.31e-07/0.5488, allocations: 0 / 0.6771 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006432/0.5494, allocations: 135.7 kB / 0.6772 GB, free: 8.281 MB / 0.5294 GB 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.001886/0.5513, allocations: 1.134 MB / 0.6783 GB, free: 7.113 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006784/0.552, allocations: 235.9 kB / 0.6785 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.552, allocations: 0 / 0.6785 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.5525, allocations: 238.5 kB / 0.6787 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.5529, allocations: 52.62 kB / 0.6788 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.556, allocations: 2.142 MB / 0.6809 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.5563, allocations: 0.7085 MB / 0.6816 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003014/0.5566, allocations: 49.39 kB / 0.6816 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.5568, allocations: 43.41 kB / 0.6817 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of SimCode: time 4.11e-07/0.5568, allocations: 0 / 0.6817 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.5858, allocations: 7.96 MB / 0.6894 GB, free: 11.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.27, allocations: 12.05 kB / 0.6895 GB, free: 11.65 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.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 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2Mix.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches