Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 181.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 51.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2581, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.4184/0.6764, allocations: 153 MB / 0.5622 GB, free: 13.57 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.6803, allocations: 4.06 MB / 0.5661 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.6805, allocations: 6.5 kB / 0.5661 GB, free: 13.28 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000446/0.681, allocations: 104.4 kB / 0.5662 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002885/0.6839, allocations: 1.257 MB / 0.5675 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000991/0.6848, allocations: 394.5 kB / 0.5678 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006243/0.6855, allocations: 466 kB / 0.5683 GB, free: 12.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.374e-05/0.6855, allocations: 7.406 kB / 0.5683 GB, free: 12.86 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003569/0.6859, allocations: 228.1 kB / 0.5685 GB, free: 12.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.6861, allocations: 151.7 kB / 0.5686 GB, free: 12.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.528e-05/0.6861, allocations: 18.03 kB / 0.5687 GB, free: 12.82 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003795/0.6899, allocations: 2.269 MB / 0.5709 GB, free: 12.56 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.69, allocations: 139.5 kB / 0.571 GB, free: 12.56 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.6902, allocations: 164.2 kB / 0.5712 GB, free: 12.56 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002069/0.6923, allocations: 1.548 MB / 0.5727 GB, free: 12.46 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.6923, allocations: 0 / 0.5727 GB, free: 12.46 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6923, allocations: 2.625 kB / 0.5727 GB, free: 12.46 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.423e-06/0.6923, allocations: 0 / 0.5727 GB, free: 12.46 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.002026/0.6943, allocations: 0.7065 MB / 0.5734 GB, free: 12.07 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.6944, allocations: 10.16 kB / 0.5734 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.648e-05/0.6945, allocations: 66.45 kB / 0.5734 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006719/0.6951, allocations: 109.2 kB / 0.5735 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.6956, allocations: 227.7 kB / 0.5738 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.6956, allocations: 21.78 kB / 0.5738 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/0.6957, allocations: 29.27 kB / 0.5738 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009644/0.6966, allocations: 0.5879 MB / 0.5744 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.6966, allocations: 0 / 0.5744 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.6967, allocations: 22.09 kB / 0.5744 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.883e-05/0.6967, allocations: 22.52 kB / 0.5744 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.6978, allocations: 0.6478 MB / 0.5751 GB, free: 11.75 MB / 462.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.002794/0.7006, allocations: 1.243 MB / 0.5763 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008794/0.7015, allocations: 353 kB / 0.5766 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.7019, allocations: 166.6 kB / 0.5768 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002035/0.7039, allocations: 0.4955 MB / 0.5773 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.704, allocations: 46.36 kB / 0.5773 GB, free: 10.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.435e-06/0.704, allocations: 0 / 0.5773 GB, free: 10.8 MB / 462.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: medium1.T Please use -d=bltdump for more information. 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: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.0141/0.7181, allocations: 3.182 MB / 0.5804 GB, free: 9.441 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.7181, allocations: 89.53 kB / 0.5805 GB, free: 9.344 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.7183, allocations: 173.5 kB / 0.5807 GB, free: 9.227 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.7183, allocations: 39.05 kB / 0.5807 GB, free: 9.191 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.7185, allocations: 185.4 kB / 0.5809 GB, free: 9.027 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.7186, allocations: 179 kB / 0.581 GB, free: 8.898 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.7188, allocations: 120.3 kB / 0.5812 GB, free: 8.859 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.7189, allocations: 334.9 kB / 0.5815 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.7196, allocations: 263.8 kB / 0.5817 GB, free: 8.488 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008033/0.7204, allocations: 432.2 kB / 0.5821 GB, free: 8.242 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.7219, allocations: 0.6874 MB / 0.5828 GB, free: 7.977 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.7219, allocations: 10.66 kB / 0.5828 GB, free: 7.969 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001802/0.7237, allocations: 0.7767 MB / 0.5836 GB, free: 7.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.7237, allocations: 11.67 kB / 0.5836 GB, free: 7.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.7237, allocations: 4.875 kB / 0.5836 GB, free: 7.766 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.7239, allocations: 60.2 kB / 0.5837 GB, free: 7.738 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.7251, allocations: 178.5 kB / 0.5838 GB, free: 7.691 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007488/0.7258, allocations: 1.079 MB / 0.5849 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007681/0.7266, allocations: 47.02 kB / 0.5849 GB, free: 6.617 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.396e-05/0.7267, allocations: 43.02 kB / 0.585 GB, free: 6.609 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002744/0.7269, allocations: 172 kB / 0.5851 GB, free: 6.477 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.7271, allocations: 34.55 kB / 0.5852 GB, free: 6.461 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.7291, allocations: 0.7871 MB / 0.5859 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.7291, allocations: 7.719 kB / 0.5859 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.7291, allocations: 0 / 0.5859 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.7291, allocations: 7.922 kB / 0.5859 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.7323, allocations: 1.529 MB / 0.5874 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.7323, allocations: 2.844 kB / 0.5874 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.7334, allocations: 148.1 kB / 0.5876 GB, free: 5.301 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.7335, allocations: 41.31 kB / 0.5876 GB, free: 5.277 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.145e-05/0.7336, allocations: 27.88 kB / 0.5876 GB, free: 5.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/0.7354, allocations: 2.518 MB / 0.5901 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.7354, allocations: 6.344 kB / 0.5901 GB, free: 2.766 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002464/0.7379, allocations: 1.082 MB / 0.5912 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.256e-05/0.738, allocations: 25.25 kB / 0.5912 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.7381, allocations: 15.88 kB / 0.5912 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007958/0.7388, allocations: 35.66 kB / 0.5912 GB, free: 2.266 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.7389, allocations: 53.78 kB / 0.5913 GB, free: 2.234 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.739e-05/0.739, allocations: 38.72 kB / 0.5913 GB, free: 2.223 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.948e-05/0.7391, allocations: 123.8 kB / 0.5914 GB, free: 2.137 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7391, allocations: 0 / 0.5914 GB, free: 2.137 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001421/0.7405, allocations: 387.9 kB / 0.5918 GB, free: 2.082 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0051/0.7456, allocations: 2.375 MB / 0.5941 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.7474, allocations: 0.6339 MB / 0.5948 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.7474, allocations: 6.25 kB / 0.5948 GB, free: 0.625 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.7485, allocations: 0.5173 MB / 0.5953 GB, free: 340 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007593/0.7492, allocations: 101.6 kB / 0.5954 GB, free: 300 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007708/0.7569, allocations: 4.25 MB / 0.5995 GB, free: 13.65 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.7573, allocations: 0.7875 MB / 0.6003 GB, free: 12.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008118/0.7581, allocations: 187.9 kB / 0.6005 GB, free: 12.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.7585, allocations: 124.4 kB / 0.6006 GB, free: 12.77 MB / 478.1 MB Notification: Performance of SimCode: time 8.31e-07/0.7585, allocations: 0 / 0.6006 GB, free: 12.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06066/0.8192, allocations: 20.2 MB / 0.6203 GB, free: 9.238 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/15.24, allocations: 7.062 kB / 0.6203 GB, free: 9.234 MB / 494.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.85825301099976]